/* Compact operational shell shared by every authenticated module surface. */
body.erp-pro-body {
  --erp-compact-line: #dbe4ef;
  --erp-compact-soft: #f6f9fc;
}

body.erp-pro-body .main {
  padding-top: 8px;
  padding-bottom: 24px;
}

body.erp-pro-body .hx-object-page,
body.erp-pro-body .hx-erp-workspace {
  gap: 6px;
}

body.erp-pro-body .hx-object-page > .crumbs,
body.erp-pro-body .hx-erp-workspace > .crumbs {
  display: none;
}

body.erp-pro-body .hx-object-page > .hx-data-scope-banner {
  order: 5;
}

body.erp-pro-body .hx-data-scope-banner {
  min-height: 28px;
  padding: 3px 7px;
  gap: 5px;
  overflow-x: auto;
  font-size: .61rem;
  white-space: nowrap;
  scrollbar-width: none;
}

body.erp-pro-body .hx-data-scope-banner > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

body.erp-pro-body .hx-data-scope-banner > div span {
  font-size: .49rem;
}

body.erp-pro-body .hx-data-scope-banner > small {
  display: none;
}

body.erp-pro-body .hx-scope-chip {
  padding: 2px 6px;
}

body.erp-pro-body .hx-object-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-height: 31px;
  padding: 2px;
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: none;
  scrollbar-width: none;
}

body.erp-pro-body .hx-object-nav a {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .62rem;
  line-height: 1;
  white-space: nowrap;
}

body.erp-pro-body .hx-object-nav small {
  display: none;
}

body.erp-pro-body .fpro-object-pagebar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 7px 9px;
  border-radius: 7px;
  box-shadow: none;
}

body.erp-pro-body .fpro-object-copy {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 33px;
}

body.erp-pro-body .fpro-object-copy .fpro-mark {
  flex: 0 0 auto;
  min-height: 19px;
  padding: 2px 6px;
  font-size: .52rem;
  white-space: nowrap;
}

body.erp-pro-body .fpro-object-pagebar h1 {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.erp-pro-body .fpro-object-pagebar p,
body.erp-pro-body .erp-object-roles {
  display: none;
}

body.erp-pro-body .fpro-object-facts {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

body.erp-pro-body .fpro-object-facts span,
body.erp-pro-body .erp-object-pagebar .fpro-object-facts span:last-child {
  min-width: 76px;
  min-height: 33px;
  padding: 4px 6px;
}

body.erp-pro-body .fpro-object-facts b {
  font-size: .76rem;
}

body.erp-pro-body .fpro-object-facts small {
  margin-top: 1px;
  font-size: .46rem;
}

body.erp-pro-body .fpro-object-switcher {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.erp-pro-body .fpro-object-switcher a {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: .6rem;
}

body.erp-pro-body .hx-object-actions {
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.erp-pro-body .hx-object-actions .btn,
body.erp-pro-body .hx-object-pagination .btn {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: .66rem;
}

body.erp-pro-body .hx-object-list-page > .hx-table-tools {
  gap: 5px;
  padding: 5px;
}

body.erp-pro-body .hx-table-tools label,
body.erp-pro-body .hx-table-tools span {
  font-size: .56rem;
}

body.erp-pro-body .hx-table-tools input,
body.erp-pro-body .hx-table-tools select,
body.erp-pro-body .hx-table-tools .btn,
body.erp-pro-body .hx-table-tools button {
  min-height: 29px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 6px;
  font-size: .66rem;
}

body.erp-pro-body .hx-record-form-shell {
  gap: 6px;
  padding: 7px;
}

body.erp-pro-body .hx-system-reference-compact {
  min-height: 31px;
  padding: 5px 7px;
}

body.erp-pro-body .hx-system-reference-compact span,
body.erp-pro-body .hx-system-reference-compact small {
  font-size: .55rem;
}

body.erp-pro-body .hx-system-reference-compact b {
  font-size: .7rem;
}

body.erp-pro-body .hx-form-tabs {
  top: 72px;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-height: 31px;
  padding: 2px;
  overflow-x: auto;
  border-radius: 6px;
  scrollbar-width: none;
}

body.erp-pro-body .hx-form-tabs button {
  flex: 0 0 auto;
  display: block;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .6rem;
  white-space: nowrap;
}

body.erp-pro-body .hx-form-tabs button small {
  display: none;
}

body.erp-pro-body .hx-record-field-grid {
  gap: 6px;
}

body.erp-pro-body .hx-record-field-grid > .tenant-field {
  padding: 6px;
}

body.erp-pro-body .hx-form-submit-row {
  bottom: 4px;
  padding: 5px;
}

body.erp-pro-body .hx-module-directory-page > h1 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

body.erp-pro-body .hx-module-tabs.tabs,
body.erp-pro-body .hx-work-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-height: 31px;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  border-radius: 6px;
  scrollbar-width: none;
}

body.erp-pro-body .hx-module-tabs.tabs a,
body.erp-pro-body .hx-work-tabs a {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .6rem;
  white-space: nowrap;
}

body.erp-pro-body .hx-module-summary-grid {
  gap: 4px;
}

body.erp-pro-body .hx-module-summary-grid > div {
  min-height: 41px;
  padding: 5px 7px;
}

body.erp-pro-body .hx-module-summary-grid b {
  font-size: .84rem;
}

body.erp-pro-body .hx-module-summary-grid span {
  font-size: .52rem;
}

body.erp-pro-body .rs-module-launchpad {
  border-radius: 7px;
  box-shadow: none;
}

body.erp-pro-body .rs-module-launchpad > header,
body.erp-pro-body .rs-module-launchpad .rs-suite-nav-grid {
  display: none;
}

body.erp-pro-body .rs-module-launchpad .rs-module-picker,
body.erp-pro-body .rs-module-launchpad .rs-suite-nav-grid + .rs-module-picker {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(220px, 1fr) auto;
  gap: 5px;
  padding: 4px 5px;
}

body.erp-pro-body .rs-module-picker label {
  display: flex;
  align-items: center;
  gap: 5px;
}

body.erp-pro-body .rs-module-picker label span {
  flex: 0 0 auto;
  font-size: .52rem;
}

body.erp-pro-body .rs-module-picker select,
body.erp-pro-body .rs-module-picker button {
  min-height: 28px;
  border-radius: 5px;
  font-size: .65rem;
}

body.erp-pro-body .hx-erp-workspace .hx-work-layout {
  gap: 6px;
}

body.erp-pro-body .hx-erp-workspace .hx-work-queue,
body.erp-pro-body .hx-erp-workspace .hx-work-control {
  padding: 7px;
}

body.erp-pro-body .hx-erp-workspace .hx-work-section-head {
  align-items: center;
  margin-bottom: 5px;
}

body.erp-pro-body .hx-erp-workspace .hx-work-section-head h2 {
  margin: 0;
  font-size: .78rem;
}

body.erp-pro-body .hx-erp-workspace .hx-work-section-head .eyebrow,
body.erp-pro-body .hx-erp-workspace .hx-work-section-head p {
  display: none;
}

body.erp-pro-body .hx-erp-workspace .hx-work-section-head .hx-btn {
  min-height: 27px;
  padding: 4px 8px;
  font-size: .61rem;
}

body.erp-pro-body .hx-erp-workspace .hx-module-object-directory,
body.erp-pro-body .hx-module-directory-page .hx-module-object-directory {
  max-height: min(62vh, 660px);
  overflow: auto;
}

body.erp-pro-body .hx-module-object-directory td > b,
body.erp-pro-body .hx-module-object-directory td > small {
  display: block;
}

body.erp-pro-body .hx-module-object-directory td > small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .58rem;
}

body.erp-pro-body .fpro-catalog-board {
  gap: 5px;
}

body.erp-pro-body .fpro-catalog-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px 9px;
}

body.erp-pro-body .fpro-catalog-head > div:first-child {
  min-width: 0;
}

body.erp-pro-body .fpro-catalog-head h2 {
  margin: 0;
  font-size: .86rem;
}

body.erp-pro-body .fpro-catalog-head .eyebrow {
  font-size: .5rem;
}

body.erp-pro-body .fpro-catalog-head p {
  max-width: 920px;
  overflow: hidden;
  font-size: .58rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.erp-pro-body .fpro-catalog-head .hx-btn,
body.erp-pro-body .fpro-catalog-head .actions {
  align-self: center;
  justify-self: end;
  min-height: 27px;
  margin: 0;
  padding: 4px 8px;
  font-size: .61rem;
}

body.erp-pro-body .fpro-catalog-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.erp-pro-body .fpro-catalog-tabs > a {
  flex: 1 0 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 33px;
  padding: 5px 8px;
  border-radius: 6px;
  box-shadow: none;
}

body.erp-pro-body .fpro-catalog-tabs b {
  overflow: hidden;
  font-size: .61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.erp-pro-body .fpro-catalog-tabs small {
  flex: 0 0 auto;
  font-size: .49rem;
}

body.erp-pro-body .fpro-report-pack {
  min-height: 188px;
  padding: 9px;
}

body.erp-pro-body .fpro-report-pack p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.erp-pro-body .fpro-chart-card {
  min-height: 270px;
  padding: 10px;
}

body.erp-pro-body .fpro-chart-card > a:not(.fpro-empty-chart),
body.erp-pro-body .fpro-empty-chart {
  min-height: 160px;
}

@media (min-width: 901px) {
  body.erp-pro-body .hx-topbar > .in {
    padding: 0 16px;
  }

  body.erp-pro-body .hx-row1 {
    min-height: 39px;
    gap: 7px;
    padding: 3px 0;
  }

  body.erp-pro-body .hx-row2 {
    min-height: 33px;
    gap: 5px;
    padding: 0;
  }

  body.erp-pro-body .hx-brand .logo,
  body.erp-pro-body .hx-context-brand > .ic,
  body.erp-pro-body .hx-launcher summary {
    width: 29px;
    height: 29px;
    min-height: 29px;
  }

  body.erp-pro-body .hx-brand > span:last-child {
    font-size: .86rem;
  }

  body.erp-pro-body .hx-brand small,
  body.erp-pro-body .hx-context-brand small,
  body.erp-pro-body .hx-user-menu .who small {
    display: none;
  }

  body.erp-pro-body .hx-context-brand {
    min-width: 190px;
    padding-right: 8px;
  }

  body.erp-pro-body .hx-context-mega .hx-mega-top {
    min-height: 31px;
    padding: 5px 7px;
    font-size: .64rem;
  }

  body.erp-pro-body .hx-search,
  body.erp-pro-body .hx-search input,
  body.erp-pro-body .hx-search button,
  body.erp-pro-body .hx-icobtn,
  body.erp-pro-body .hx-locale-menu > summary {
    height: 28px;
    min-height: 28px;
  }

  body.erp-pro-body .hx-processbar {
    display: grid;
    grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr);
    align-items: center;
    padding-inline: max(16px, calc((100vw - 1400px) / 2));
  }

  body.erp-pro-body .hx-processbar > .in {
    width: auto;
    max-width: none;
    min-height: 37px;
    margin: 0;
    padding: 3px 8px 3px 0;
    gap: 7px;
  }

  body.erp-pro-body .hx-process-code {
    padding: 3px 6px;
    font-size: .52rem;
  }

  body.erp-pro-body .hx-process-copy b {
    font-size: .7rem;
  }

  body.erp-pro-body .hx-process-copy small,
  body.erp-pro-body .hx-process-facts {
    display: none;
  }

  body.erp-pro-body .hx-process-actions,
  body.erp-pro-body .hx-proc-tools {
    flex-wrap: nowrap;
  }

  body.erp-pro-body .hx-process-actions > a,
  body.erp-pro-body .hx-proc-menu > summary,
  body.erp-pro-body .hx-proc-tools > a {
    min-height: 25px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: .57rem;
  }

  body.erp-pro-body .hx-proc-tools {
    width: auto;
    max-width: none;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
    padding: 3px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 900px) {
  body.erp-pro-body .hx-process-copy small,
  body.erp-pro-body .hx-process-facts {
    display: none;
  }

  body.erp-pro-body .hx-processbar > .in {
    padding-top: 5px;
    padding-bottom: 3px;
  }

  body.erp-pro-body .hx-proc-tools {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  body.erp-pro-body .fpro-object-pagebar {
    grid-template-columns: 1fr;
  }

  body.erp-pro-body .fpro-object-facts {
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.erp-pro-body .fpro-object-facts span,
  body.erp-pro-body .erp-object-pagebar .fpro-object-facts span:last-child {
    flex: 0 0 78px;
  }

  body.erp-pro-body .fpro-catalog-head {
    grid-template-columns: 1fr;
  }

  body.erp-pro-body .fpro-catalog-head .hx-btn,
  body.erp-pro-body .fpro-catalog-head .actions {
    justify-self: start;
  }

  body.erp-pro-body .rs-module-launchpad .rs-module-picker,
  body.erp-pro-body .rs-module-launchpad .rs-suite-nav-grid + .rs-module-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.erp-pro-body .fpro-object-copy .fpro-mark,
  body.erp-pro-body .fpro-object-facts {
    display: none;
  }

  body.erp-pro-body .fpro-object-pagebar h1 {
    font-size: .9rem;
  }

  body.erp-pro-body .hx-system-reference-compact small {
    display: none;
  }

  body.erp-pro-body .hx-system-reference-compact {
    grid-template-columns: 1fr;
  }
}
