.hx-object-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hx-object-page > * {
  order: 20;
  min-width: 0;
}

.hx-object-page > .cy-suite-nav {
  order: 1;
}

.hx-object-page > .crumbs {
  order: 2;
}

.hx-object-nav {
  order: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #e6e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
  scrollbar-width: thin;
}

.hx-object-nav a {
  flex: 0 0 158px;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.hx-object-nav b,
.hx-object-nav small {
  display: block;
  min-width: 0;
}

.hx-object-nav small {
  margin-top: 3px;
  color: #6b7280;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-object-nav a.active {
  border-color: #8c83ff;
  background: #f8f7ff;
  color: #5147d9;
}

.hx-object-page > h1 {
  order: 4;
  margin-bottom: 0;
}

.hx-object-page > .hx-pagehead {
  order: 4;
}

.hx-object-page > .sub {
  order: 5;
  margin-top: -8px;
}

.hx-object-actions {
  order: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.hx-object-actions .btn,
.hx-object-pagination .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
}

.hx-record-form {
  min-width: 0;
}

.hx-record-form-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.hx-record-form-shell label,
.hx-record-form-shell .hx-field label {
  margin: 0 0 4px;
}

.hx-record-form-shell .tenant-field {
  position: relative;
  min-width: 0;
}

.hx-data-scope-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  background: #f6f9fc;
  color: #475569;
  font-size: .68rem;
}

.hx-data-scope-banner > div {
  display: grid;
  min-width: max-content;
}

.hx-data-scope-banner > div span {
  color: #64748b;
  font-size: .56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hx-data-scope-banner > div b { color: #172033; }

.hx-data-scope-banner > small {
  margin-left: auto;
  color: #64748b;
  text-align: right;
}

.hx-scope-chip {
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}

.hx-scope-chip.unrestricted {
  border-color: #99d8c6;
  background: #ecfdf5;
  color: #047857;
}

.hx-op-lines {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.hx-op-lines > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hx-op-lines h2 { margin: 2px 0; font-size: 1rem; }
.hx-op-lines header p { margin: 0; color: #64748b; font-size: .72rem; }
.hx-op-line-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.hx-op-line-paste {
  padding: 10px;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: #fff;
}

.hx-op-line-paste textarea { width: 100%; margin-top: 5px; }
.hx-op-line-paste > div { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hx-op-line-list { display: grid; gap: 8px; }

.hx-op-line {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fff;
}

.hx-op-line-heading {
  display: grid;
  grid-template-columns: 34px minmax(115px, .65fr) minmax(220px, 1.6fr) minmax(115px, .65fr) auto;
  gap: 7px;
  align-items: end;
}

.hx-op-line-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: #172033;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.hx-op-line label { min-width: 0; color: #475569; font-size: .64rem; font-weight: 800; }
.hx-op-line input,
.hx-op-line select,
.hx-op-line textarea { width: 100%; margin-top: 3px; }

.hx-op-line-buttons { display: flex; gap: 4px; padding-bottom: 1px; }
.hx-op-line-buttons button {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 1rem;
}

.hx-op-line-buttons button:last-child { color: #b42318; }
.hx-op-description textarea { resize: vertical; }

.hx-op-line-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 7px;
  align-items: end;
}

.hx-op-line-total {
  display: grid;
  min-height: 53px;
  align-content: center;
  padding: 5px 8px;
  border: 1px solid #bbd8d1;
  border-radius: 5px;
  background: #effaf6;
}

.hx-op-line-total span { color: #47736a; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.hx-op-line-total b { color: #075e54; font-size: .9rem; }
.hx-op-line-more { border-top: 1px solid #e2e8f0; padding-top: 6px; }
.hx-op-line-more summary { color: #475569; cursor: pointer; font-size: .7rem; font-weight: 800; }
.hx-op-line-more > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 7px; }
.hx-op-lines > footer { color: #64748b; font-size: .68rem; text-align: right; }

.hx-op-lines-detail { margin-top: 10px; }
.hx-op-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.hx-op-detail-grid > article { padding: 10px; border: 1px solid #dbe3ec; border-radius: 7px; background: #fff; }
.hx-op-detail-grid article > header { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; }
.hx-op-detail-grid article > header > span { display: grid; place-items: center; height: 30px; border-radius: 4px; background: #172033; color: #fff; font-size: .66rem; font-weight: 900; }
.hx-op-detail-grid article header div { display: grid; }
.hx-op-detail-grid article header small { color: #64748b; }
.hx-op-detail-grid article header em { padding: 3px 6px; border-radius: 4px; background: #edf2f7; color: #475569; font-size: .62rem; font-style: normal; font-weight: 800; }
.hx-op-detail-grid article > p { min-height: 38px; color: #334155; font-size: .74rem; }
.hx-op-detail-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0; }
.hx-op-detail-grid dl div { display: grid; padding: 5px; background: #f8fafc; }
.hx-op-detail-grid dt { color: #64748b; font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.hx-op-detail-grid dd { margin: 0; color: #172033; font-size: .7rem; font-weight: 700; }

.hx-intelligence-board {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
}

.hx-intelligence-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hx-intelligence-board h2 { margin: 2px 0; font-size: 1.05rem; }
.hx-intelligence-board header p { max-width: 760px; margin: 0; color: #64748b; font-size: .72rem; }
.hx-intelligence-board > nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hx-intelligence-board > nav a {
  display: grid;
  padding: 7px 9px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  text-decoration: none;
}
.hx-intelligence-board > nav a b { font-size: .7rem; }
.hx-intelligence-board > nav a small { color: #64748b; font-size: .6rem; }
.hx-intelligence-board > nav a.active { border-color: #2b6cb0; background: #eaf2fb; color: #174e87; }
.hx-intelligence-chart { overflow: hidden; }
.hx-object-dashboard-page .od-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-intelligence-chart > p { min-height: 32px; margin: 0 0 6px; color: #64748b; font-size: .68rem; }
.hx-intelligence-chart footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; color: #64748b; font-size: .62rem; }
.hx-intelligence-chart footer a { color: #245d92; font-weight: 800; }
.hx-intelligence-chart .fpro-decision { display: block; margin-top: 5px; color: #334155; }

.hx-report-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hx-report-catalog-grid > article { padding: 10px; border: 1px solid #dbe3ec; border-radius: 7px; background: #f8fafc; }
.hx-report-catalog-grid article > header { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: .63rem; text-transform: uppercase; }
.hx-report-catalog-grid article > header span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: #172033; color: #fff; }
.hx-report-catalog-grid h3 { margin: 8px 0 4px; font-size: .82rem; }
.hx-report-catalog-grid p { min-height: 42px; margin: 0; color: #64748b; font-size: .68rem; }
.hx-report-catalog-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 8px 0; }
.hx-report-catalog-grid dl div { padding: 5px; background: #fff; }
.hx-report-catalog-grid dt { color: #64748b; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.hx-report-catalog-grid dd { margin: 0; color: #334155; font-size: .65rem; font-weight: 700; }
.hx-report-catalog-grid footer { display: flex; gap: 10px; border-top: 1px solid #e2e8f0; padding-top: 7px; }
.hx-report-catalog-grid footer a { color: #245d92; font-size: .64rem; font-weight: 800; text-decoration: none; }

.hx-record-artifacts {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
}
.hx-record-artifacts > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hx-record-artifacts h2 { margin: 2px 0; font-size: 1rem; }
.hx-record-artifacts header p { margin: 0; color: #64748b; font-size: .68rem; }
.hx-record-artifacts > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.hx-record-artifacts article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; }
.hx-record-artifacts article > div { display: grid; }
.hx-record-artifacts article b { color: #172033; font-size: .72rem; }
.hx-record-artifacts article small { color: #64748b; font-size: .6rem; }
.hx-record-artifacts nav { display: flex; gap: 4px; }
.hx-record-artifacts nav a { padding: 5px 7px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #245d92; font-size: .63rem; font-weight: 900; text-decoration: none; }

.hx-mapped-attributes { overflow: hidden; border: 1px solid #dbe3ec; border-radius: 7px; background: #fff; }
.hx-mapped-attributes > summary { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; color: #334155; cursor: pointer; font-size: .72rem; font-weight: 900; }
.hx-mapped-attributes > summary span { color: #64748b; font-size: .62rem; }
.hx-mapped-attributes > table { margin: 0; border-top: 1px solid #e2e8f0; }

@media (prefers-reduced-motion: no-preference) {
  .hx-intelligence-chart svg { animation: hx-chart-arrive .55s cubic-bezier(.2,.7,.2,1) both; transform-origin: center bottom; }
  .hx-intelligence-chart:nth-child(2n) svg { animation-delay: .06s; }
  .hx-intelligence-chart:nth-child(3n) svg { animation-delay: .12s; }
  .hx-intelligence-chart svg rect { animation: hx-chart-bar-grow .72s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: center bottom; }
  .hx-intelligence-chart svg circle { animation: hx-chart-point-pop .48s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: center; }
  .hx-intelligence-chart svg path,
  .hx-intelligence-chart svg polyline { animation: hx-chart-trace-in .82s ease-out both; }
  .hx-intelligence-chart svg rect:nth-of-type(2n),
  .hx-intelligence-chart svg circle:nth-of-type(2n) { animation-delay: .08s; }
  .hx-intelligence-chart svg rect:nth-of-type(3n),
  .hx-intelligence-chart svg circle:nth-of-type(3n) { animation-delay: .15s; }
  @keyframes hx-chart-arrive { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes hx-chart-bar-grow { from { opacity: .18; transform: scaleY(.08); } to { opacity: 1; transform: scaleY(1); } }
  @keyframes hx-chart-point-pop { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
  @keyframes hx-chart-trace-in { from { opacity: .12; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .hx-intelligence-chart svg,
  .hx-intelligence-chart svg * { animation: none !important; }
}

@media (max-width: 820px) {
  .hx-data-scope-banner { overflow-x: auto; }
  .hx-data-scope-banner > small { display: none; }
  .hx-op-lines > header { align-items: flex-start; flex-direction: column; }
  .hx-op-line-heading { grid-template-columns: 34px 1fr 1fr auto; }
  .hx-op-line-heading > label:nth-of-type(2) { grid-column: 2 / -1; grid-row: 2; }
  .hx-op-line-more > div { grid-template-columns: 1fr; }
  .hx-intelligence-board > nav { grid-template-columns: 1fr 1fr; }
  .hx-report-catalog-grid { grid-template-columns: 1fr; }
  .hx-object-dashboard-page .od-charts { grid-template-columns: 1fr; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .hx-object-dashboard-page .od-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hx-object-page > .msg,
.hx-object-page > .alert {
  order: 7;
}

.hx-gov-runtime-hook {
  order: 8;
}

.hx-form-contract-v2 {
  order: 9;
}

.hx-object-page > .hx-record-form {
  order: 10;
  min-width: 0;
}

.hx-object-page > .hx-grid,
.hx-object-page > .hx-cyber-operation-form,
.hx-object-page > .hx-hero {
  order: 8;
  min-width: 0;
}

.hx-system-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dcd8ff;
  border-radius: 14px;
  background: linear-gradient(115deg, #f8f7ff, #fff);
}

.hx-system-reference-compact {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 9px 10px;
  border-color: #dfe3ec;
  border-radius: 8px;
  background: #f9fafb;
}

.hx-system-reference-compact small {
  grid-column: auto;
  text-align: right;
}

.hx-system-reference span,
.hx-system-reference small {
  color: #6b7280;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hx-system-reference b {
  min-width: 0;
  color: #211b56;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.hx-system-reference small {
  grid-column: 1 / -1;
  text-transform: none;
  font-weight: 700;
}

.hx-table-tools {
  order: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .42fr) minmax(150px, .34fr) auto auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6e7ee;
  border-radius: 14px;
  background: #fff;
}

.hx-object-page > .hx-cyber-filter {
  order: 8;
  min-width: 0;
}

.hx-table-tools label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hx-table-tools span {
  color: #6b7280;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hx-table-tools input,
.hx-table-tools select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.hx-object-table-wrap {
  order: 9;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e6e7ee;
  border-radius: 14px;
  background: #fff;
}

.hx-object-table {
  min-width: 760px;
  margin: 0;
}

.hx-object-table th,
.hx-object-table td {
  vertical-align: top;
}

.hx-object-table th a,
.hx-object-table td a {
  overflow-wrap: anywhere;
}

.hx-object-pagination {
  order: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0;
}

.hx-record-field-grid,
.hx-record-evidence {
  min-width: 0;
}

.hx-record-field-grid input,
.hx-record-field-grid select,
.hx-record-field-grid textarea,
.hx-record-evidence input {
  max-width: 100%;
}

.field-note-pop {
  max-width: min(320px, calc(100vw - 32px));
}

.hx-form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.hx-form-governance-drawer {
  order: 11;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
}

.hx-form-governance-drawer > summary,
.hx-tx-governance-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: #374151;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  list-style: none;
}

.hx-form-governance-drawer > summary::-webkit-details-marker,
.hx-tx-governance-drawer > summary::-webkit-details-marker {
  display: none;
}

.hx-form-governance-drawer > summary::after,
.hx-tx-governance-drawer > summary::after {
  content: "+";
  color: #374151;
  font-weight: 950;
}

.hx-form-governance-drawer[open] > summary::after,
.hx-tx-governance-drawer[open] > summary::after {
  content: "-";
}

.hx-form-governance-drawer > summary span,
.hx-tx-governance-drawer > summary span {
  color: #6b7280;
  font-size: .66rem;
  font-weight: 700;
}

.hx-form-governance-drawer dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0 12px 12px;
  background: #e5e7eb;
}

.hx-form-governance-drawer dl > div {
  min-width: 0;
  padding: 9px;
  background: #f9fafb;
}

.hx-form-governance-drawer dt {
  color: #6b7280;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hx-form-governance-drawer dd {
  margin: 3px 0 0;
  color: #111827;
  font-size: .82rem;
  font-weight: 900;
}

.hx-form-governance-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -11px 12px 12px;
  background: #e5e7eb;
}

.hx-form-governance-links span {
  min-width: 0;
  padding: 8px 9px;
  background: #fff;
  color: #4b5563;
  font-size: .74rem;
  line-height: 1.35;
}

.hx-form-governance-drawer > .btn {
  margin: 0 12px 12px;
}

.hx-erp-deep-page {
  gap: 8px;
}

.hx-erp-deep-page > .sub {
  display: none;
}

.hx-erp-deep-page > h1 {
  margin: 0;
  color: #111827;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hx-erp-deep-page > .crumbs {
  margin: 0;
  font-size: .72rem;
}

.hx-erp-deep-page .hx-object-nav {
  gap: 6px;
  padding: 6px;
  border-color: #dfe3ec;
  border-radius: 8px;
  box-shadow: none;
}

.hx-erp-deep-page .hx-object-nav a {
  flex-basis: 132px;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: .7rem;
}

.hx-erp-deep-page .hx-object-actions {
  gap: 6px;
}

.hx-erp-deep-page .hx-object-actions .btn,
.hx-erp-deep-page .hx-object-pagination .btn {
  min-height: 34px;
  border-radius: 7px;
}

.hx-erp-deep-page .hx-card,
.hx-erp-deep-page .card,
.hx-erp-deep-page .hx-object-table-wrap,
.hx-erp-deep-page .hx-table-tools,
.hx-erp-deep-page .hx-tx-advanced,
.hx-erp-deep-page .hx-tx-module-fields,
.hx-erp-deep-page .hx-tx-generic-detail,
.hx-erp-deep-page .hx-tx-policy-snapshot,
.hx-erp-deep-page .hx-tax-evidence-lines,
.hx-erp-deep-page .hx-tx-governance-drawer {
  border-radius: 8px;
  box-shadow: none;
}

.hx-erp-deep-page .hx-card {
  padding: 12px;
}

.hx-erp-deep-page .hx-cardhead {
  align-items: center;
  margin-bottom: 8px;
}

.hx-erp-deep-page .hx-cardhead h2,
.hx-erp-deep-page .hx-cardhead h3 {
  margin: 2px 0 0;
  font-size: .92rem;
  line-height: 1.25;
}

.hx-erp-deep-page .hx-cardhead p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: .65rem;
}

.hx-erp-deep-page .hx-field label,
.hx-erp-deep-page form.rec label {
  color: #4b5563;
  font-size: .68rem;
  font-weight: 850;
}

.hx-erp-deep-page .hx-field input,
.hx-erp-deep-page .hx-field select,
.hx-erp-deep-page .hx-field textarea,
.hx-erp-deep-page form.rec input,
.hx-erp-deep-page form.rec select,
.hx-erp-deep-page form.rec textarea {
  min-height: 36px;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  padding: 8px 10px;
}

.hx-erp-deep-page .hx-gov-runtime-hook {
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-color: #dfe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.hx-erp-deep-page .hx-gov-runtime-hook > span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #111827;
}

.hx-erp-deep-page .hx-tx-contract {
  display: grid;
  gap: 10px;
}

.hx-erp-deep-page .hx-tx-contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  overflow: visible;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  color: #111827;
  background: #f9fafb;
  box-shadow: none;
}

.hx-erp-deep-page .hx-tx-contract-head::after {
  display: none;
}

.hx-erp-deep-page .hx-tx-contract-head .grouptitle {
  margin: 0;
  color: #6b7280;
}

.hx-erp-deep-page .hx-tx-contract-head h2 {
  margin: 2px 0 0;
  color: #111827;
  font-size: .98rem;
}

.hx-erp-deep-page .hx-tx-contract-head small {
  display: block;
  margin-top: 2px;
  color: #4b5563;
  font-size: .68rem;
  font-weight: 800;
}

.hx-erp-deep-page .hx-tx-contract-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.hx-erp-deep-page .hx-tx-contract-badges .hx-badge {
  border: 1px solid #dfe3ec;
  background: #fff;
  color: #374151;
  backdrop-filter: none;
}

.hx-erp-deep-page .hx-tx-step {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #111827;
  box-shadow: none;
}

.hx-erp-deep-page .hx-tx-core-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 10px;
}

.hx-erp-deep-page .hx-tx-party-grid,
.hx-erp-deep-page .hx-tx-tax-grid,
.hx-erp-deep-page .hx-tx-config-grid {
  gap: 8px 10px;
}

.hx-erp-deep-page .hx-tx-derived-facts,
.hx-erp-deep-page .hx-tx-compliance-facts {
  border-radius: 8px;
}

.hx-erp-deep-page .hx-tx-derived-facts > div,
.hx-erp-deep-page .hx-tx-compliance-facts > div {
  padding: 8px;
}

.hx-erp-deep-page .hx-tx-lines-card {
  padding: 0;
}

.hx-erp-deep-page .hx-tx-lines-card > .hx-cardhead {
  padding: 10px 12px;
  margin: 0;
}

.hx-erp-deep-page .hx-tx-lines-card > .hx-cardhead small {
  margin: 2px 0 0 31px;
}

.hx-erp-deep-page .hx-tx-line-actions.hx-table-tools {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hx-erp-deep-page .hx-tx-lines-wrap.hx-table-tools {
  display: block;
  padding: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: #fff;
}

.hx-erp-deep-page .hx-tx-lines input,
.hx-erp-deep-page .hx-tx-lines select,
.hx-erp-deep-page .tx-line-search {
  border-radius: 6px;
  font-size: .74rem;
}

.hx-erp-deep-page .hx-tx-bottom-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 10px;
}

.hx-erp-deep-page .hx-tx-total-card {
  position: static;
  background: #fff;
}

.hx-erp-deep-page .hx-tx-total-card .grand {
  border-radius: 8px;
  background: #111827;
}

.hx-erp-deep-page .hx-tx-tax-note {
  margin-top: 10px;
  border-left-color: #0f766e;
  border-radius: 7px;
  background: #f0fdfa;
  color: #134e4a;
}

.hx-erp-deep-page .hx-tx-advanced > summary,
.hx-erp-deep-page .hx-tx-module-fields > summary,
.hx-erp-deep-page .hx-tx-generic-detail > summary,
.hx-erp-deep-page .hx-tx-policy-snapshot > summary {
  padding: 11px 12px;
}

.hx-erp-deep-page .hx-tx-advanced .hx-tx-config-grid,
.hx-erp-deep-page .hx-tx-module-fields .hx-record-field-grid {
  padding: 0 12px 12px;
}

.hx-erp-deep-page .hx-tx-governance-drawer {
  overflow: hidden;
  border: 1px solid #dfe3ec;
  background: #fff;
}

.hx-erp-deep-page .hx-tx-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.hx-erp-deep-page .hx-tx-policy-tile {
  min-height: 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: none;
}

.hx-erp-deep-page .hx-tx-policy-tile::after {
  display: none;
}

.hx-erp-deep-page .hx-tx-policy-tile > span {
  width: 30px;
  height: 24px;
  border-radius: 6px;
  color: #374151;
  background: #f3f4f6;
  font-size: .58rem;
}

.hx-erp-deep-page .hx-tx-policy-tile h3 {
  margin: 8px 0 4px;
  font-size: .82rem;
}

.hx-erp-deep-page .hx-tx-policy-tile p,
.hx-erp-deep-page .hx-tx-policy-tile a {
  font-size: .64rem;
}

.hx-transaction-detail-page .hx-tx-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  box-shadow: none;
}

.hx-transaction-detail-page .hx-tx-detail-hero .grouptitle {
  color: #6b7280;
}

.hx-transaction-detail-page .hx-tx-detail-hero h1 {
  margin: 2px 0;
  color: #111827;
  font-size: 1.22rem;
}

.hx-transaction-detail-page .hx-tx-detail-hero p {
  margin: 0;
  color: #4b5563;
}

.hx-transaction-detail-page .hx-tx-detail-total b {
  margin: 2px 0 5px;
  color: #111827;
  font-size: 1.05rem;
}

.hx-transaction-detail-page .hx-tx-detail-parties {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hx-transaction-detail-page .hx-tx-detail-lines,
.hx-transaction-detail-page .hx-tx-operations,
.hx-transaction-detail-page .hx-tax-calculation-evidence {
  margin: 0;
}

.hx-erp-deep-page .hx-tax-calculation-evidence {
  background: #fff;
}

.hx-erp-deep-page .hx-tax-calculation-evidence::before {
  display: none;
}

.hx-erp-deep-page .hx-tax-evidence-grid article {
  border-radius: 8px;
  background: #f9fafb;
  box-shadow: none;
}

.hx-detail-actions {
  margin-top: 0;
}

.hx-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hx-inline-actions a {
  color: #1d4ed8;
  font-size: .68rem;
  font-weight: 850;
  text-decoration: none;
}

.hx-inline-actions a:hover {
  text-decoration: underline;
}

.hx-navigation-table,
.hx-process-register {
  min-width: 720px;
}

.hx-module-tabs.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.hx-module-tabs.tabs a {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #374151;
  font-size: .72rem;
  font-weight: 850;
}

.hx-module-tabs.tabs a.active {
  background: #111827;
  color: #fff;
}

.hx-module-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hx-module-summary-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
}

.hx-module-summary-grid b,
.hx-module-summary-grid span {
  display: block;
}

.hx-module-summary-grid b {
  color: #111827;
  font-size: 1rem;
}

.hx-module-summary-grid span {
  margin-top: 2px;
  color: #6b7280;
  font-size: .66rem;
  font-weight: 750;
}

.hx-module-special-workbench {
  margin: 0;
  border-radius: 8px;
  background: #fff;
}

.hx-module-special-workbench .hx-cardhead {
  margin: 0;
}

.hx-finance-ledger-page .hx-hero.cool,
.hx-finance-admin-page .hx-hero.cool,
.hx-authority-erp-page .hx-authority-pagebar,
.hx-erp-pagebar {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  min-height: 0;
  margin: 0;
  padding: 12px;
  overflow: visible;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  box-shadow: none;
}

.hx-finance-ledger-page .hx-hero.cool::before,
.hx-finance-ledger-page .hx-hero.cool::after,
.hx-finance-admin-page .hx-hero.cool::before,
.hx-finance-admin-page .hx-hero.cool::after,
.hx-authority-erp-page .hx-authority-pagebar::before,
.hx-authority-erp-page .hx-authority-pagebar::after {
  display: none;
}

.hx-erp-pagebar .kicker,
.hx-authority-erp-page .hx-authority-pagebar .grouptitle {
  color: #6b7280;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hx-erp-pagebar h1,
.hx-authority-erp-page .hx-authority-pagebar h1 {
  margin: 2px 0 0;
  color: #111827;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hx-erp-pagebar > .kicker {
  grid-column: 1;
  grid-row: 1;
}

.hx-erp-pagebar > h1 {
  grid-column: 1;
  grid-row: 2;
}

.hx-erp-pagebar > .actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.hx-erp-pagebar p,
.hx-authority-erp-page .hx-authority-pagebar p,
.hx-authority-erp-page .hx-authority-orbit {
  display: none;
}

.hx-erp-pagebar .actions,
.hx-authority-erp-page .hx-authority-pagebar .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}

.hx-erp-pagebar .hx-table-tools {
  grid-template-columns: minmax(170px, 1fr) auto auto auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.hx-finance-ledger-page .hx-cyber-kpis,
.hx-finance-admin-page .hx-authority-kpis {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
}

.hx-finance-ledger-page .hx-kpi,
.hx-finance-admin-page .hx-authority-kpis article {
  min-height: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  animation: none !important;
}

.hx-finance-ledger-page .hx-kpi::before,
.hx-finance-ledger-page .hx-kpi::after,
.hx-finance-admin-page .hx-authority-kpis article::after,
.hx-finance-admin-page .hx-authority-spark {
  display: none;
}

.hx-finance-ledger-page .hx-kpi .lbl,
.hx-finance-admin-page .hx-authority-kpis small {
  margin: 0;
  color: #6b7280;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hx-finance-ledger-page .hx-kpi .val,
.hx-finance-admin-page .hx-authority-kpis b {
  margin: 3px 0;
  color: #111827;
  font-size: 1.06rem;
  line-height: 1.2;
}

.hx-finance-ledger-page .hx-kpi small,
.hx-finance-admin-page .hx-authority-kpis em {
  color: #6b7280;
  font-size: .62rem;
}

.hx-finance-ledger-page .rise,
.hx-finance-admin-page .rise {
  animation: none !important;
}

.hx-finance-admin-page .hx-tabs.hx-tx-anchor-tabs {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
}

.hx-finance-admin-page .hx-tabs.hx-tx-anchor-tabs a {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #374151;
  font-size: .68rem;
  font-weight: 850;
}

.hx-finance-admin-page .hx-tabs.hx-tx-anchor-tabs a.on {
  background: #111827;
  color: #fff;
}

.hx-finance-admin-page .hx-tx-settings-card,
.hx-finance-admin-page .hx-authority-section {
  margin: 0;
}

.hx-finance-admin-page .hx-settings-register .hx-cardhead {
  margin-bottom: 6px;
}

.hx-finance-admin-page .hx-settings-register .hx-inline-actions {
  min-width: 180px;
}

.hx-finance-admin-page .hx-grid.k3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hx-finance-admin-page .hx-authority-warning {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: .68rem;
}

.hx-finance-admin-page .hx-authority-warning > span {
  display: none;
}

.hx-finance-admin-page .hx-authority-stateflow,
.hx-finance-admin-page .hx-authority-submission,
.hx-finance-admin-page .hx-authority-profiles article,
.hx-finance-admin-page .hx-authority-evidence,
.hx-finance-admin-page .hx-authority-mini-timeline > div {
  border-radius: 8px;
  box-shadow: none;
}

.hx-finance-admin-page .hx-authority-queue-table {
  margin: 0 0 12px;
}

.hx-finance-admin-page .hx-authority-queue-table .hx-inline-actions {
  min-width: 132px;
}

.hx-erp-workspace {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1540px;
}

.hx-erp-workspace > * {
  order: 20;
  min-width: 0;
}

.hx-erp-workspace > .crumbs {
  order: 1;
  margin: 0;
  font-size: .72rem;
}

.hx-erp-workspace > .rs-module-launchpad {
  order: 2;
}

.hx-erp-workspace > .hx-work-tabs {
  order: 3;
  margin: 0;
  padding: 6px;
  border-radius: 8px;
  box-shadow: none;
}

.hx-erp-workspace > .hx-erp-process-nav {
  order: 4;
}

.hx-erp-workspace > .hx-work-layout {
  order: 5;
}

.hx-erp-workspace > .hx-work-kpis {
  order: 6;
}

.hx-erp-workspace .hxp-banners,
.hx-erp-workspace > .hx-work-hero,
.hx-erp-workspace > .hx-work-lens-switcher,
.hx-erp-workspace > .hx-work-personas,
.hx-erp-workspace > .hx-experience-contract {
  display: none;
}

.hx-erp-workspace .hx-work-layout,
.hx-erp-workspace .hx-work-intelligence-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.hx-erp-workspace .hx-work-control {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.hx-erp-workspace .hx-work-control > .eyebrow,
.hx-erp-workspace .hx-work-control > h2 {
  display: none;
}

.hx-erp-workspace .hx-work-control > a {
  padding: 10px;
  border: 0;
  border-left: 1px solid #e5e7eb;
}

.hx-erp-workspace .hx-work-section,
.hx-erp-workspace .hx-pe-kpis,
.hx-erp-workspace .hx-work-kpis {
  margin: 0;
}

.hx-erp-workspace .hx-pe-kpis {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hx-erp-workspace .hx-pe-kpi {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: none;
}

.hx-erp-workspace .hx-pe-kpi::after {
  display: none;
}

.hx-erp-workspace .hx-pe-kpi > strong {
  margin: 4px 0 2px;
  font-size: 1.1rem;
}

.hx-erp-workspace .hx-work-object-grid,
.hx-erp-workspace .hx-work-chart-grid,
.hx-erp-workspace .hx-work-report-grid,
.hx-erp-workspace .hx-work-process-grid,
.hx-erp-workspace .hx-workview-grid {
  gap: 8px;
}

.hx-erp-workspace .hx-work-object-grid > article,
.hx-erp-workspace .hx-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.hx-erp-workspace .hx-work-object-grid > article:hover,
.hx-erp-workspace .hx-card:hover,
.hx-erp-workspace .hx-work-kpis > a:hover {
  transform: none;
  box-shadow: none;
}

.hx-erp-workspace .hx-work-object-main .surface-icon,
.hx-erp-workspace .hx-work-control > a > i {
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
}

.hx-erp-workspace .hx-work-section-head {
  margin-bottom: 8px;
}

.hx-erp-workspace .hx-work-section-head p,
.hx-erp-workspace .hx-work-control small {
  display: none;
}

.hx-erp-process-nav {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hx-erp-process-nav .hx-work-section-head {
  margin-bottom: 0;
}

.hx-erp-process-nav .hx-work-section-head p {
  display: block;
  max-width: 900px;
  margin-top: 3px;
  color: #5f6878;
}

.hx-finance-drilldown-table tbody + tbody {
  border-top: 2px solid #d7dce5;
}

.hx-finance-drilldown-table .hx-group-row td {
  background: #eef2f7;
  color: #172033;
  padding-top: 9px;
  padding-bottom: 9px;
}

.hx-finance-drilldown-table .hx-group-row b,
.hx-finance-drilldown-table .hx-group-row small,
.hx-finance-drilldown-table td b,
.hx-finance-drilldown-table td small {
  display: block;
}

.hx-finance-drilldown-table .hx-group-row small {
  margin-top: 2px;
  color: #4b5565;
  font-weight: 500;
  text-transform: none;
}

.hx-finance-drilldown-table td small {
  margin-top: 2px;
  color: #667085;
  font-size: .74rem;
  line-height: 1.35;
}

.hx-finance-drilldown-table .hx-inline-actions {
  min-width: 260px;
}

@media (max-width: 980px) {
  .hx-table-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-table-tools .btn,
  .hx-object-actions .btn {
    width: 100%;
  }

  .hx-erp-deep-page .hx-tx-core-grid,
  .hx-erp-deep-page .hx-tx-bottom-grid,
  .hx-transaction-detail-page .hx-tx-detail-bottom {
    grid-template-columns: 1fr;
  }

  .hx-transaction-detail-page .hx-tx-detail-parties,
  .hx-erp-deep-page .hx-tx-governance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-finance-ledger-page .hx-hero.cool,
  .hx-finance-admin-page .hx-hero.cool,
  .hx-authority-erp-page .hx-authority-pagebar,
  .hx-erp-pagebar,
  .hx-erp-workspace .hx-work-control {
    grid-template-columns: 1fr;
  }

  .hx-erp-pagebar .actions,
  .hx-authority-erp-page .hx-authority-pagebar .actions {
    justify-content: flex-start;
  }

  .hx-erp-pagebar > .kicker,
  .hx-erp-pagebar > h1,
  .hx-erp-pagebar > .actions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .hx-object-page {
    gap: 11px;
  }

  .hx-object-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .hx-object-nav a {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .hx-object-nav small {
    white-space: normal;
  }

  .hx-object-actions,
  .hx-object-pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hx-table-tools {
    grid-template-columns: 1fr;
  }

  .hx-system-reference {
    grid-template-columns: 1fr;
  }

  .hx-system-reference-compact small {
    text-align: left;
  }

  .hx-form-governance-drawer dl,
  .hx-form-governance-links,
  .hx-transaction-detail-page .hx-tx-detail-parties,
  .hx-erp-deep-page .hx-tx-governance-grid,
  .hx-erp-deep-page .hx-tx-party-grid,
  .hx-erp-deep-page .hx-tx-tax-grid,
  .hx-erp-deep-page .hx-tx-config-grid,
  .hx-transaction-detail-page .hx-tx-detail-hero {
    grid-template-columns: 1fr;
  }

  .hx-erp-deep-page .hx-tx-party-grid .span-2,
  .hx-erp-deep-page .hx-tx-tax-grid .span-2,
  .hx-erp-deep-page .hx-tx-config-grid .span-2 {
    grid-column: auto;
  }

  .hx-erp-deep-page .hx-tx-contract-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hx-erp-deep-page .hx-tx-contract-badges {
    justify-content: flex-start;
  }

  .hx-erp-deep-page .hx-tx-line-actions.hx-table-tools {
    width: 100%;
  }

  .hx-erp-deep-page .hx-tx-line-actions.hx-table-tools .btn,
  .hx-erp-deep-page .hx-tx-line-actions.hx-table-tools .hx-badge {
    flex: 1 1 auto;
  }

  .hx-erp-pagebar .hx-table-tools,
  .hx-finance-admin-page .hx-grid.k3,
  .hx-erp-workspace .hx-work-object-grid,
  .hx-erp-workspace .hx-work-chart-grid,
  .hx-erp-workspace .hx-work-report-grid,
  .hx-erp-workspace .hx-work-process-grid,
  .hx-erp-workspace .hx-workview-grid {
    grid-template-columns: 1fr;
  }

  .hx-erp-workspace .hx-work-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .hx-erp-workspace .hx-work-tabs a {
    flex: none;
  }
}

@media (max-width: 480px) {
  .hx-object-nav {
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .hx-object-nav a,
  .hx-object-actions .btn,
  .hx-object-pagination .btn,
  .hx-table-tools .btn {
    width: 100%;
  }

  .hx-object-table {
    min-width: 680px;
  }
}

/* FINANCE PRO module skin.  This is a presentation layer over finance-erp. */
body.finance-pro-body {
  --brand: #0e7490;
  --brandink: #155e75;
  --brand-t: #ecfeff;
  --teal: #0891b2;
  --line: #d9e2ec;
  --line2: #eef2f6;
  --panel: #f8fafc;
  --ink: #172033;
  --ink2: #344054;
  --muted: #5f6f86;
  background: #fff;
}

body.finance-pro-body .hx-stage {
  background: #fff;
  animation: none;
}

body.finance-pro-body .hx-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
}

body.finance-pro-body .hx-brand .logo,
body.finance-pro-body .hx-context-brand > .ic {
  border: 1px solid #a5f3fc;
  border-radius: 7px;
  background: #087f9c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  animation: none;
}

body.finance-pro-body .hx-brand > span:last-child,
body.finance-pro-body .hx-context-brand b {
  color: var(--brand);
}

body.finance-pro-body .hx-brand small,
body.finance-pro-body .hx-context-brand small {
  color: var(--muted);
}

body.finance-pro-body .hx-search {
  max-width: 430px;
  height: 30px;
}

body.finance-pro-body .hx-search input {
  height: 30px;
  border-radius: 999px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: .72rem;
}

body.finance-pro-body .hx-search button {
  width: 32px;
  height: 30px;
  color: var(--brand);
}

body.finance-pro-body .hx-row2 {
  min-height: 39px;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--line2);
}

body.finance-pro-body .hx-context-mega {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 2px;
  overflow: visible;
}

body.finance-pro-body .hx-context-mega .hx-mega-node {
  flex: 0 0 auto;
  min-width: 0;
}

body.finance-pro-body .hx-context-mega .hx-mega-top {
  width: auto;
  max-width: none;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 0;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.12;
  overflow: visible;
  text-overflow: clip;
}

body.finance-pro-body .hx-context-mega .hx-mega-top:hover,
body.finance-pro-body .hx-context-mega .hx-mega-node:hover > .hx-mega-top,
body.finance-pro-body .hx-context-mega .hx-mega-node.active > .hx-mega-top {
  background: #fff;
  color: var(--brand);
}

body.finance-pro-body .hx-context-mega .hx-mega-node.active > .hx-mega-top::after {
  display: none;
}

body.finance-pro-body .hx-menu-symbol {
  width: auto;
  min-width: 17px;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  font-size: .62rem;
}

body.finance-pro-body .hx-context-panel,
body.finance-pro-body .hx-context-panel.section-records {
  width: auto;
  min-width: 255px;
  max-width: min(88vw, 390px);
  padding: 7px;
  border-color: var(--line);
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}

body.finance-pro-body .hx-context-panel .hx-mega-head,
body.finance-pro-body .hx-context-panel > footer {
  display: none;
}

body.finance-pro-body .hx-context-panel .hx-mega-grid,
body.finance-pro-body .hx-context-panel.section-records .hx-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  max-height: min(66vh, 520px);
}

body.finance-pro-body .hx-context-panel .hx-mega-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
}

body.finance-pro-body .hx-context-panel .hx-mega-item:hover,
body.finance-pro-body .hx-context-panel .hx-mega-item.on {
  background: var(--brand-t);
  color: var(--brand);
  transform: none;
}

body.finance-pro-body .hx-context-panel .hx-mega-item > .ic {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  font-size: .65rem;
}

body.finance-pro-body .hx-context-panel .hx-mega-item b {
  font-size: .78rem;
}

body.finance-pro-body .hx-context-panel .hx-mega-item small {
  display: none;
}

body.finance-pro-body .hx-erp-workspace {
  max-width: 1300px;
  gap: 12px;
}

.hx-erp-workspace > .fpro-console {
  order: 2;
  margin-top: 4px;
}

.fpro-console {
  display: grid;
  gap: 14px;
  color: var(--ink);
}

.fpro-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 0 4px;
}

.fpro-mark {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #a5f3fc;
  border-radius: 7px;
  background: #087f9c;
  color: #fff;
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.fpro-head h1 {
  margin: 9px 0 4px;
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Inter, sans-serif;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: 0;
}

.fpro-head p {
  max-width: 910px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.fpro-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: 100%;
}

.fpro-primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 850;
  white-space: nowrap;
}

.fpro-primary-nav a:hover {
  background: var(--brand-t);
  color: var(--brand);
}

.fpro-primary-nav span {
  color: var(--brand);
  font-size: .62rem;
  font-weight: 950;
}

.fpro-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.fpro-kpi {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.fpro-kpi strong,
.fpro-kpi span,
.fpro-kpi small {
  display: block;
}

.fpro-kpi strong {
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 850;
}

.fpro-kpi span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fpro-kpi small {
  margin-top: 3px;
  color: #047857;
  font-size: .72rem;
  font-weight: 800;
}

.fpro-mega {
  position: sticky;
  top: 112px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: stretch;
  margin: 0 -1px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  padding: 3px;
}

.fpro-mega-group {
  position: relative;
}

.fpro-mega-group > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 850;
  list-style: none;
}

.fpro-mega-group > summary::-webkit-details-marker {
  display: none;
}

.fpro-mega-group[open] > summary,
.fpro-mega-group > summary:hover {
  background: #fff;
  color: var(--brand);
}

.fpro-mega-group > summary span {
  color: var(--brand);
  font-size: .62rem;
  font-weight: 950;
}

.fpro-mega-group > div {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 15;
  display: grid;
  gap: 1px;
  min-width: 285px;
  max-width: min(88vw, 420px);
  max-height: min(66vh, 520px);
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 0 10px 10px 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}

.fpro-mega-group:nth-last-child(-n+3) > div {
  right: 0;
  left: auto;
}

.fpro-mega-group a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
}

.fpro-mega-group a:hover {
  background: var(--brand-t);
  color: var(--brand);
}

.fpro-mega-group i {
  color: var(--brand);
  font-size: .66rem;
  font-style: normal;
  font-weight: 950;
}

.fpro-mega-group b,
.fpro-mega-group small {
  display: block;
}

.fpro-mega-group b {
  font-size: .82rem;
}

.fpro-mega-group small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.fpro-work-tabs {
  position: sticky;
  top: 74px;
  z-index: 9;
}

.fpro-feature-grid {
  display: grid;
  gap: 14px;
}

.fpro-feature-section {
  display: grid;
  gap: 10px;
}

.fpro-feature-section > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fpro-feature-section > header span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-t);
  color: var(--brand);
  font-size: .66rem;
  font-weight: 950;
}

.fpro-feature-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.fpro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.fpro-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}

.fpro-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 26px rgba(8, 145, 178, .14);
  transform: translateY(-1px);
}

.fpro-card-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  color: inherit;
}

.fpro-card-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-t);
  color: var(--brand);
  font-size: .62rem;
  font-weight: 950;
}

.fpro-card-main b,
.fpro-card-main small {
  display: block;
}

.fpro-card-main b {
  color: var(--ink);
  font-size: .95rem;
}

.fpro-card-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.fpro-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fpro-card-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
}

.fpro-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fpro-card-facts span {
  min-width: 0;
  padding: 7px;
  border-radius: 9px;
  background: var(--panel);
  text-align: center;
}

.fpro-card-facts b,
.fpro-card-facts small {
  display: block;
}

.fpro-card-facts b {
  color: var(--ink);
  font-size: .92rem;
}

.fpro-card-facts small {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fpro-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.fpro-card footer a,
.fpro-exceptions > header > a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1.5px solid var(--brand);
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 850;
}

.fpro-card footer a:hover,
.fpro-exceptions > header > a:hover {
  background: var(--brand-t);
}

.fpro-exceptions {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.fpro-exceptions > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fpro-exceptions h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.fpro-exception-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.fpro-exception-grid a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line2);
  border-radius: 11px;
  background: var(--panel);
}

.fpro-exception-grid span {
  color: var(--brand);
  font-size: 1rem;
}

.fpro-exception-grid b,
.fpro-exception-grid small {
  display: block;
}

.fpro-exception-grid b {
  color: var(--ink);
  font-size: .78rem;
}

.fpro-exception-grid small {
  color: var(--muted);
  font-size: .68rem;
}

body.finance-pro-body .hx-object-page {
  max-width: 1320px;
  gap: 10px;
}

body.finance-pro-body .hx-object-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  padding: 5px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel);
}

body.finance-pro-body .hx-object-nav a {
  flex: none;
  min-height: 48px;
  padding: 7px 9px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: .69rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.finance-pro-body .hx-object-nav b {
  color: inherit;
  overflow: visible;
  white-space: normal;
}

body.finance-pro-body .hx-object-nav small {
  color: var(--muted);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

body.finance-pro-body .hx-object-nav a.active {
  border-color: #a5f3fc;
  background: #fff;
  color: var(--brand);
}

body.finance-pro-body .fpro-object-pagebar {
  order: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 10px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

body.finance-pro-body .fpro-object-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

body.finance-pro-body .fpro-object-copy .fpro-mark {
  width: fit-content;
  min-height: 23px;
  padding: 3px 9px;
  font-size: .64rem;
}

body.finance-pro-body .fpro-object-pagebar h1 {
  margin: 0;
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Inter, sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

body.finance-pro-body .fpro-object-pagebar p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

body.finance-pro-body .fpro-object-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.finance-pro-body .fpro-object-facts span {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--panel);
}

body.finance-pro-body .fpro-object-facts span:last-child {
  grid-column: 1 / -1;
  min-height: 46px;
}

body.finance-pro-body .fpro-object-facts b,
body.finance-pro-body .fpro-object-facts small {
  display: block;
  min-width: 0;
}

body.finance-pro-body .fpro-object-facts b {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.12;
}

body.finance-pro-body .fpro-object-facts small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.2;
}

body.finance-pro-body .fpro-object-switcher {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

body.finance-pro-body .fpro-object-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
}

body.finance-pro-body .fpro-object-switcher a:hover,
body.finance-pro-body .fpro-object-switcher a.active {
  border-color: #a5f3fc;
  background: var(--brand-t);
  color: var(--brand);
}

body.finance-pro-body .hx-object-table-wrap {
  overflow-x: auto;
}

body.finance-pro-body .hx-object-list-page .hx-object-table,
body.finance-pro-body .hx-object-dashboard-page .hx-object-table {
  min-width: 1120px;
}

body.finance-pro-body .hx-object-list-page .hx-object-table th,
body.finance-pro-body .hx-object-list-page .hx-object-table td {
  min-width: 135px;
  vertical-align: top;
}

body.finance-pro-body .hx-object-list-page .hx-object-table th:first-child,
body.finance-pro-body .hx-object-list-page .hx-object-table td:first-child {
  min-width: 190px;
}

body.finance-pro-body .hx-object-list-page .hx-object-table td:first-child a {
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.finance-pro-body .hx-object-bulk-page .bi-wrap {
  max-width: none;
}

body.finance-pro-body .hx-object-bulk-page .bi-up .hx-table-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  padding: 10px;
}

body.finance-pro-body .hx-object-bulk-page .bi-up .hx-table-tools label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.finance-pro-body .hx-object-bulk-page .bi-up input[type=file] {
  width: 100%;
  margin: 0;
}

body.finance-pro-body .hx-object-bulk-page .bi-up button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-size: .78rem;
  white-space: nowrap;
}

body.finance-pro-body .od-actions {
  display: none;
}

body.finance-pro-body .fpro-catalog-board {
  display: grid;
  gap: 10px;
  margin: 0;
}

body.finance-pro-body .fpro-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(20, 64, 82, .88)),
    var(--card);
  color: #f8fafc;
}

body.finance-pro-body .fpro-catalog-head h2 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

body.finance-pro-body .fpro-catalog-head p {
  max-width: 820px;
  margin: 0;
  color: rgba(226, 232, 240, .82);
  font-size: .68rem;
  line-height: 1.45;
}

body.finance-pro-body .fpro-catalog-head .eyebrow {
  color: #67e8f9;
}

body.finance-pro-body .fpro-catalog-head .hx-btn,
body.finance-pro-body .fpro-catalog-head .actions {
  justify-self: start;
  max-width: 100%;
}

body.finance-pro-body .fpro-catalog-head .hx-btn {
  white-space: nowrap;
}

body.finance-pro-body .fpro-catalog-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.finance-pro-body .fpro-catalog-tabs > a {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

body.finance-pro-body .fpro-catalog-tabs > a.active {
  border-color: rgba(14, 165, 233, .55);
  background: linear-gradient(135deg, #083344, #0f766e);
  color: #fff;
}

body.finance-pro-body .fpro-catalog-tabs b,
body.finance-pro-body .fpro-catalog-tabs small {
  display: block;
}

body.finance-pro-body .fpro-catalog-tabs b {
  font-size: .72rem;
}

body.finance-pro-body .fpro-catalog-tabs small {
  color: rgba(71, 85, 105, .82);
  font-size: .58rem;
  font-weight: 800;
}

body.finance-pro-body .fpro-catalog-tabs > a.active small {
  color: rgba(236, 253, 245, .82);
}

body.finance-pro-body .fpro-chart-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.finance-pro-body .fpro-chart-card {
  display: grid;
  gap: 8px;
  min-height: 365px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

body.finance-pro-body .fpro-chart-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin: 0;
}

body.finance-pro-body .fpro-chart-card h3 .k {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #075985;
  font-size: .52rem;
}

body.finance-pro-body .fpro-chart-card p {
  min-height: 34px;
  margin: 0;
  color: #475569;
  font-size: .62rem;
  line-height: 1.45;
}

body.finance-pro-body .fpro-chart-card > a:not(.fpro-empty-chart) {
  display: grid;
  place-items: center;
  min-height: 235px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

body.finance-pro-body .fpro-chart-card svg {
  width: 100%;
  height: auto;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.finance-pro-body .fpro-empty-chart {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 235px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
}

body.finance-pro-body .fpro-empty-chart b,
body.finance-pro-body .fpro-empty-chart small {
  display: block;
}

body.finance-pro-body .fpro-empty-chart small {
  max-width: 240px;
  color: #64748b;
  font-size: .6rem;
  line-height: 1.4;
}

body.finance-pro-body .fpro-chart-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .58rem;
  line-height: 1.35;
}

body.finance-pro-body .fpro-chart-card footer a {
  color: #0f766e;
  font-weight: 900;
  white-space: nowrap;
}

body.finance-pro-body .fpro-decision {
  display: block;
  color: #334155;
  font-size: .58rem;
  line-height: 1.4;
}

body.finance-pro-body .fpro-report-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

body.finance-pro-body .fpro-report-pack {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 13px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 7px 18px rgba(15, 23, 42, .06);
}

body.finance-pro-body .fpro-report-pack header,
body.finance-pro-body .fpro-report-pack footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.finance-pro-body .fpro-report-pack header span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #083344;
  color: #e0f2fe;
  font-size: .58rem;
  font-weight: 950;
}

body.finance-pro-body .fpro-report-pack header b {
  padding: 4px 7px;
  border-radius: 6px;
  background: #ecfeff;
  color: #0e7490;
  font-size: .54rem;
}

body.finance-pro-body .fpro-report-pack h3 {
  margin: 0;
  color: #0f172a;
  font-size: .82rem;
  line-height: 1.25;
}

body.finance-pro-body .fpro-report-pack p {
  margin: 0;
  color: #475569;
  font-size: .63rem;
  line-height: 1.48;
}

body.finance-pro-body .fpro-report-pack dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

body.finance-pro-body .fpro-report-pack dl div {
  padding: 8px;
  border-radius: 7px;
  background: #f1f5f9;
}

body.finance-pro-body .fpro-report-pack dt,
body.finance-pro-body .fpro-report-pack dd {
  margin: 0;
}

body.finance-pro-body .fpro-report-pack dt {
  color: #64748b;
  font-size: .5rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.finance-pro-body .fpro-report-pack dd {
  margin-top: 2px;
  color: #0f172a;
  font-size: .58rem;
  font-weight: 850;
}

body.finance-pro-body .fpro-report-pack footer {
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

body.finance-pro-body .fpro-report-pack footer a {
  color: #0f766e;
  font-size: .6rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .fpro-head {
    grid-template-columns: 1fr;
  }

  .fpro-primary-nav {
    justify-content: flex-start;
  }

  .fpro-mega,
  .fpro-work-tabs {
    position: static;
  }

  .fpro-mega-group,
  .fpro-mega-group > summary,
  .fpro-mega-group > div {
    width: 100%;
  }

  .fpro-mega-group > div {
    position: static;
    max-width: none;
    border-radius: 10px;
    box-shadow: none;
  }

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

  body.finance-pro-body .hx-object-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  body.finance-pro-body .fpro-catalog-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fpro-cards,
  .fpro-card-facts,
  .fpro-exception-grid,
  body.finance-pro-body .fpro-object-facts {
    grid-template-columns: 1fr;
  }

  body.finance-pro-body .hx-object-nav {
    grid-template-columns: 1fr;
  }

  body.finance-pro-body .fpro-catalog-tabs,
  body.finance-pro-body .fpro-report-pack dl {
    grid-template-columns: 1fr;
  }
}

/* Shared ERP Pro discipline for every authenticated module object surface. */
body.erp-pro-body .erp-object-pagebar .fpro-object-facts span:last-child {
  grid-column: auto;
  min-height: 58px;
}

body.erp-pro-body .erp-object-roles {
  display: block;
  color: #475569;
  font-size: .64rem;
  font-weight: 750;
  line-height: 1.4;
}

body.erp-pro-body .hx-object-actions {
  order: 5;
  margin: 0;
}

body.erp-pro-body .hx-object-list-page > .hx-table-tools {
  grid-template-columns: minmax(280px, 1fr) minmax(155px, .32fr) minmax(145px, .28fr) auto auto;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
}

body.erp-pro-body .hx-object-table-wrap {
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

body.erp-pro-body .hx-object-list-page .hx-object-table-wrap {
  max-height: min(58vh, 650px);
  overflow: auto;
}

body.erp-pro-body .hx-cyber-asset-list .hx-object-table-wrap {
  max-height: min(58vh, 650px);
  overflow: auto;
}

body.erp-pro-body .hx-cyber-form-layout {
  align-items: start;
}

body.erp-pro-body .hx-cyber-form-layout > .hx-cyber-form {
  order: 0;
  max-height: min(72vh, 760px);
  overflow: auto;
}

body.erp-pro-body .hx-cyber-form-layout > .hx-cyber-form-aside {
  order: 1;
}

body.erp-pro-body .hx-cyber-form .hx-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 9px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
}

body.erp-pro-body .hx-object-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf1f7;
  color: #334155;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.erp-pro-body .hx-object-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

body.erp-pro-body .hx-object-table tbody tr:hover {
  background: #ecfeff;
}

body.erp-pro-body .hx-record-form-shell {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

body.erp-pro-body .hx-form-tabs {
  position: sticky;
  top: 76px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: rgba(241, 245, 249, .96);
  backdrop-filter: blur(8px);
}

body.erp-pro-body .hx-form-tabs button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: 850 .68rem/1.15 Aptos, "Segoe UI", Inter, sans-serif;
  text-align: left;
}

body.erp-pro-body .hx-form-tabs button small {
  overflow: hidden;
  color: #64748b;
  font-size: .55rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.erp-pro-body .hx-form-tabs button:hover,
body.erp-pro-body .hx-form-tabs button.active {
  border-color: #a5f3fc;
  background: #fff;
  color: #087f9c;
}

body.erp-pro-body .hx-form-tabs button.active small {
  color: #0e7490;
}

body.erp-pro-body .hx-form-panel {
  display: block;
  min-width: 0;
}

body.erp-pro-body .hx-form-panel[hidden],
body.erp-pro-body .tenant-field[hidden],
body.erp-pro-body .hx-form-tabs button[hidden] {
  display: none !important;
}

body.erp-pro-body .hx-form-panel[data-form-panel="fields"] > details {
  margin: 0;
}

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

body.erp-pro-body .hx-record-field-grid > .tenant-field {
  min-width: 0;
  padding: 9px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfdff;
}

body.erp-pro-body .hx-record-field-grid > .tenant-field:focus-within {
  border-color: #67e8f9;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, .08);
}

body.erp-pro-body .hx-record-field-grid textarea {
  min-height: 144px;
  resize: vertical;
}

body.erp-pro-body .hx-form-submit-row {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  padding: 9px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 9px 24px rgba(15, 23, 42, .1);
  backdrop-filter: blur(8px);
}

body.erp-pro-body .hx-process-register td,
body.erp-pro-body .hx-process-register th {
  padding: 9px 10px;
}

body.erp-pro-body .fpro-chart-card {
  min-height: 310px;
}

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

body.erp-pro-body .hx-report-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  body.erp-pro-body .hx-object-list-page > .hx-table-tools {
    grid-template-columns: 1fr 1fr;
  }

  body.erp-pro-body .hx-object-list-page > .hx-table-tools label:first-child {
    grid-column: 1 / -1;
  }

  body.erp-pro-body .hx-report-catalog-grid {
    grid-template-columns: 1fr;
  }

  body.erp-pro-body .hx-form-tabs {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  body.erp-pro-body .hx-report-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
