/* Native Decisions only. Geometry grows with content; controls retain a 44px hit area.
 * The shell-qualified component scope outranks its retained legacy/unified owner. */
html:root #shell #content .dxd {
  gap: 8px !important;
}
html:root #shell #content .dxd > .dxd-head {
  gap: 8px 16px; align-items: center; margin: 0; padding: 0 !important;
}
html:root #shell #content .dxd .dxd-title {
  margin: 0 !important; font-size: 26px !important; line-height: 1.25 !important;
}
html:root #shell #content .dxd .dc-breakdown {
  margin: 0 !important; padding: 0 !important; min-height: 0 !important;
}
html:root #shell #content .dxd .dc-breakdown > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  margin: 0; padding: 0; font: 400 13px/1.4 var(--font-ui, Geist, system-ui);
}
html:root #shell #content .dxd .dc-breakdown > summary::before {
  content: '›'; font-size: 18px; transform: rotate(0deg);
}
html:root #shell #content .dxd .dc-breakdown[open] > summary::before {
  transform: rotate(90deg);
}
html:root #shell #content .dxd .dc-breakdown[open] > .dxd-sub {
  margin: 0 0 8px; line-height: 1.5;
}
html:root #shell #content .dxd > .dxd-tools {
  gap: 4px 8px !important; align-items: center; margin: 0 !important; padding: 0 !important;
}
html:root #shell #content .dxd .dxd-search {
  flex: 1 1 18rem; min-width: min(100%, 14rem); margin: 0;
}
html:root #shell #content .dxd .dxd-search > input {
  box-sizing: border-box; min-height: 44px; height: auto; margin: 0;
  padding: 10px 12px; font: 400 14px/1.5 var(--font-ui, Geist, system-ui);
}
html:root #shell #content .dxd .dxd-select {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0;
}
html:root #shell #content .dxd .dxd-select > select {
  min-height: 44px; height: auto; margin: 0; padding-block: 8px; font-size: 13px;
}
html:root #shell #content .dxd .dxd-kinds {
  gap: 2px; margin: 0; padding: 0; align-items: center;
}
html:root #shell #content .dxd :is(.dxd-chip, .dxd-btn, .dxd-all, .dc-menu > summary) {
  box-sizing: border-box; min-height: 44px !important; height: auto !important;
  line-height: 1.4 !important;
}
html:root #shell #content .dxd :is(.dxd-chip, .dxd-btn) {
  padding: 8px 10px !important; font-size: 13px !important;
}
html:root #shell #content .dxd .dxd-body {
  gap: 12px !important; margin: 0 !important;
}
html:root #shell #content .dxd .dxd-group-head {
  box-sizing: border-box; min-height: 44px; gap: 4px 12px;
  padding: 0 12px !important; align-items: center; flex-wrap: wrap;
}
html:root #shell #content .dxd .dxd-group-head h2 {
  margin: 0; font-size: 14px; line-height: 1.5;
}
html:root #shell #content .dxd .dxd-table > thead > tr > th {
  box-sizing: border-box; height: 44px !important; padding: 6px 10px !important;
  font: 500 12px/1.4 var(--font-ui, Geist, system-ui) !important;
  text-transform: none; letter-spacing: 0; white-space: normal;
}
html:root #shell #content .dxd .dxd-table > tbody > .dxd-row > td {
  padding: 6px 10px !important; height: auto !important; vertical-align: middle;
  font: 400 13px/1.45 var(--font-ui, Geist, system-ui) !important;
}
html:root #shell #content .dxd .dxd-asset {
  min-height: 44px; height: auto; padding-block: 0; max-width: 100%; gap: 10px;
}
html:root #shell #content .dxd .dxd-asset-text {
  min-width: 0; gap: 0;
}
html:root #shell #content .dxd .dxd-asset-text > strong {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
  font-size: 13px; line-height: 1.4;
}
html:root #shell #content .dxd .dxd-asset-text > small {
  font-size: 12px; line-height: 1.4;
}
html:root #shell #content .dxd .dxd-acts {
  gap: 4px !important; min-width: 0; align-items: center;
}
@media (max-width: 860px) {
  html:root #shell #content .dxd .dxd-table > tbody > .dxd-row {
    padding: 8px 12px; gap: 4px 12px;
  }
  html:root #shell #content .dxd .dxd-table > tbody > .dxd-row > td {
    padding: 0 !important;
  }
  /* Native phone metadata uses flex:0 0 auto. Let a full location name wrap
   * inside its card instead of widening the document; retain every character. */
  html:root #shell #content .dxd .dxd-table > tbody > .dxd-row > .dxd-c-location {
    min-width: 0; max-width: 100%; flex: 0 1 auto; overflow-wrap: anywhere;
  }
  html:root #shell #content .dxd .dxd-table > tbody > .dxd-row > .dxd-check {
    min-width: 44px; min-height: 44px; align-content: center;
  }
  html:root #shell #content .dxd .dxd-tools > .dxd-search {
    flex-basis: 100%;
  }
}

/* Explicit shared collection owners only. Books/CPH, Hub, drawers, forms and other
 * tables retain their native geometry. Card layouts retain their own renderer. */
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"]) {
  --bt-row: 56px; --bt-pad-y: 6px; --bt-pad-x: 12px;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"])[data-bt-density="compact"] {
  --bt-row: 52px; --bt-pad-y: 4px;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"]) :is(.cv-views, .bt-views, .bt-tools) {
  min-height: 44px !important; padding-block: 0 !important; gap: 4px 8px;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"]) :is(.bt-view, .bt-tool, .cv-view) {
  min-height: 44px !important; height: auto !important; padding-block: 8px !important;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"])[data-bt-layout="table"] .bt-table > thead > tr > th {
  box-sizing: border-box; height: 44px !important; padding-block: 0 !important; font: 500 12px/1.4 var(--font-ui, Geist, system-ui) !important;
  text-transform: none; letter-spacing: 0;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"])[data-bt-layout="table"] :is(.bt-sort, .bt-th-static, .bt-qa) {
  min-height: 44px !important; height: auto !important;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"])[data-bt-layout="table"] .bt-table > tbody > tr > td:not(.bt-check) {
  padding-block: 6px !important; height: auto !important; vertical-align: middle;
  line-height: 1.45; white-space: normal; overflow-wrap: anywhere;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"])[data-bt-density="compact"][data-bt-layout="table"] .bt-table > tbody > tr > td:not(.bt-check) {
  padding-block: 4px !important;
}
html:root #shell #content#content .bt-root:is([data-bt-root="assets"], [data-bt-root="inventory-source"], [data-bt-root="customers"]) .bt-foot {
  min-height: 44px; padding: 4px 12px; gap: 4px 12px;
}
/* Native Inventory list: the photo is an actual open/review BUTTON. Preserve a
 * 44px hit area; its inner photograph uses separate 4:3 framing. */
html:root #shell #content .ivl-workspace .ivl-heading { margin-bottom: 12px; }
html:root #shell #content .ivl-workspace .is-tabs { margin-bottom: 8px; }
html:root #shell #content .ivl-workspace .ivl-controls { margin-bottom: 4px; gap: 4px 8px; }
html:root #shell #content .ivl-workspace .ivl-summary { margin-block: 4px 8px; }
html:root #shell #content .ivl-workspace .ivl-table > thead > tr > th {
  box-sizing: border-box; height: 44px; padding-block: 0; font-size: 12px; line-height: 1.4;
}
html:root #shell #content .ivl-workspace .ivl-table > tbody > tr > td {
  padding-block: 6px; height: auto; vertical-align: middle;
}
html:root #shell #content .ivl-workspace .ivl-identity { gap: 10px; }
html:root #shell #content .ivl-workspace .ivl-photo {
  width: 56px !important; height: 44px !important; min-width: 44px; min-height: 44px; flex: 0 0 56px;
}
html:root #shell #content .ivl-workspace .ivl-photo :is(img, .ivl-website-photo, .cph) {
  width: 56px !important; height: 42px !important; min-height: 0 !important; aspect-ratio: 4 / 3; object-fit: cover;
}
/* Payables Table/Spreadsheet only, including existing receipts disclosures. */
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) > thead > tr > th {
  box-sizing: border-box; height: 44px !important; padding-block: 0 !important; white-space: normal !important;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) > tbody > tr {
  height: auto !important;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) > tbody > tr > :is(th, td) {
  padding-block: 6px !important; height: auto !important;
}
/* Paged Customers' actual identity keeps its name action and type visible. */
html:root #shell #content#content .cpp-page > [data-status] { margin-block: 4px 8px; }
html:root #shell #content#content .cpp-page .cpp-scroll > table:not([data-cv-view="card"]) > thead > tr > th {
  box-sizing: border-box; height: 44px !important; padding-block: 0 !important; font-size: 12px;
}
html:root #shell #content#content .cpp-page .cpp-scroll > table:not([data-cv-view="card"]) > tbody > tr > td {
  height: auto !important; padding-block: 6px !important; vertical-align: middle;
}
html:root #shell #content#content .cpp-page .cpp-scroll > table:not([data-cv-view="card"]) .ori-customer-copy {
  gap: 0; min-width: 0;
}
/* Native mobile card conversion has a separate layout contract. */
@media (max-width: 700px) {
  html:root #shell #content#content .cpp-page .cpp-scroll > table[data-bux-cards="customers"]:not([data-cv-view]) > tbody > tr > td {
    padding-block: 0 !important;
  }
}

/* The actual shared list header owns title/search/chips; its original Age
 * details node is docked alongside chips only while the desktop owner exists. */
@media (min-width: 1024px) {
  html:root #shell #content .dxd > .blh[data-blh="decisions"]:not([hidden]) {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px; align-items: start; margin-block-end: 0;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] > .blh-top {
    grid-column: 1 / -1; grid-row: 1; min-height: 44px; margin: 0;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] > .blh-bar {
    grid-column: 1 / -1; grid-row: 2; min-height: 44px; margin: 0;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] > .blh-chips {
    grid-column: 1; grid-row: 3; min-width: 0; margin: 0;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] > .dc-breakdown {
    grid-column: 2; grid-row: 3; align-self: start; max-width: 100%;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] > .dc-breakdown[open] {
    grid-column: 1 / -1; grid-row: 4;
  }
  html:root #shell #content .dxd > .blh[data-blh="decisions"] .blh-chiprow {
    min-height: 44px; padding-block: 0;
  }
}
html:root #shell #content .dxd .dxd-body > .onc-toolbar {
  padding-block: 0; margin-block: 0; min-height: 0;
}
