/* The active native delivery owner already consumes these shared dimensions.
 * Scope them to the real source table; root/card/drawer/picker defaults stay96/72. */
#content .ivl-workspace .ivl-table {
  --bleu-vehicle-row-width: 56px;
  --bleu-vehicle-row-height: 44px;
}

/* Native column enhancements wrap the table; direct-child selectors miss it.
 * Customer mobile cards keep their independently qualified layout owner. */
/* Preserve native Card selection, stacking and phone action gaps. Only the
 * opener minimum changes; long names keep their natural unrestricted height. */
html:root #content#content#content .cpp-page [data-results] .ori-customer-copy > .cpp-name {
  min-width: 44px !important; min-height: 44px !important;
}
@media (min-width: 701px) {
  html:root #content#content#content .cpp-page [data-results] table:not([data-cv-view="card"]) > tbody > tr > td {
    padding-block: 6px !important; height: auto !important; vertical-align: middle;
  }
  html:root #content#content#content .cpp-page [data-results] table:not([data-cv-view="card"]) .ori-customer-identity {
    align-items: center !important; min-width: 173px;
  }
  html:root #content#content#content .cpp-page [data-results] table:not([data-cv-view="card"]) .ori-customer-copy {
    display: flex !important; align-items: center !important; gap: 8px !important;
    min-width: 0; padding-right: 0 !important;
  }
  html:root #content#content#content .cpp-page [data-results] table:not([data-cv-view="card"]) .ori-customer-copy > .cpp-name {
    flex: 1 1 auto; width: auto !important; min-width: 0; min-height: 44px !important;
    height: auto !important; max-height: none; white-space: normal !important; overflow-wrap: anywhere;
  }
  html:root #content#content#content .cpp-page [data-results] table:not([data-cv-view="card"]) .ori-customer-copy > .cpp-kind {
    /* Spreadsheet descendants inherit an important nowrap rule. Keep this
     * complete supporting label bounded but do not shrink it behind the name. */
    flex: 0 0 auto; max-width: 35%; margin: 0 !important; white-space: normal !important; overflow-wrap: anywhere;
  }
}

/* Match the exact retained four-ID AP owner using the actual invoice subtype.
 * Closed Notes shares its row; expanded evidence keeps its native full text. */
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) > tbody > .pf-invoice-row {
  min-height: 56px !important; height: auto !important;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) .pf-invoice-row .pf-identity > .pct-identity {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px; align-items: start;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) .pf-invoice-row .pct-title {
  min-width: 0;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) .pf-invoice-row .pf-identity > .pct-identity > .pct-details {
  margin: 0 !important; min-width: 0;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) .pf-invoice-row .pct-details > summary {
  display: list-item !important; min-height: 44px !important;
  height: auto !important; max-height: none; line-height: max(44px, 1.4em) !important;
  /* The retained unified summary adds12px above and below; line-height already
   * supplies the44px target. Do not add that padding a second time. */
  padding-block: 0 !important; cursor: pointer;
}
html:root #content#content#content#content .aw.pr-payables .pr-record-table:not([data-cv-view="card"]) .pf-invoice-row .pf-identity > .pct-identity > .pct-details[open] {
  grid-column: 1 / -1; grid-row: 2;
}
