/* Native AP controls retain their DOM position, callbacks and financial guards. */
#apout .ap-add-manual [data-buf-actions] {
  position: static;
  inset: auto;
  inset-block: auto;
  inset-inline: auto;
  z-index: auto;
}

/* The original invoice-review close action needs the shared 44px touch target. */
dialog.if-review button[data-if-close] {
  min-inline-size: 44px;
  min-block-size: 44px;
  flex-shrink: 0;
}

/* CPH-001: the existing mobile financial disclosure owns a separate 44px target.
   Only rows that already contain that native action reserve its space. */
@media (max-width:640px) {
  #content .mcm-contact-row .ori-customer-copy:has(> .mcm-contact-finances) {
    box-sizing:border-box;
    min-width:0;
    padding-right:52px;
  }
  #content .mcm-contact-row .ori-customer-copy:has(> .mcm-contact-finances) > .cpp-name {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-wrap:anywhere;
  }
}

/* CPH-002: actionable controls follow the shared touch-target contract.
   Task metadata spans keep their existing compact dimensions. */
.wd-app .wd-task-links > button,
.wd-app [data-bulk-toggle] {
  box-sizing:border-box;
  min-width:44px;
  min-height:44px;
}

/* The native bulk control has a 36px !important minimum; override only that
   existing Work action, including its native Done selecting state. */
.wd-app [data-bulk-toggle] {
  min-height:44px!important;
}

/* Enlarge existing controls; retain their native nodes and behavior. */
#content .ccms-open[data-bt-open],
#drawer .vd-comparison-filters > button[data-vd-comp-view],
#content [data-shop-root] .shp-state[role="alert"] > button.shp-btn[data-shp-act="reload"] {
  min-width:44px;
  min-height:44px;
}

/* Match the existing native pricing scope; retain its controls and layout. */
#drawer:has(> .carsh) #pxpanel .vd-comparison-filters > button[data-vd-comp-view] {
  min-height:44px!important;
}
