/* Existing form/card/disclosure primitives, constrained to this exact owner flow. */
:is([data-stock-publication], [data-inventory-count], [data-stock-rule]),
:is([data-stock-publication], [data-inventory-count], [data-stock-rule]) * {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule]) .grid {
  grid-template-columns: minmax(0, 1fr);
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  :is(form, input, select, article, .rare-tool-body) {
  max-width: 100%;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  :is(input:not([type="checkbox"]), select) {
  width: 100%;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  button {
  max-width: 100%;
  white-space: normal;
  text-align: start;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  .publication-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  .publication-check
  input {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 2px;
}
:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  [hidden] {
  display: none !important;
}

:is([data-stock-publication], [data-inventory-count], [data-stock-rule])
  button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
:is(
    [data-stock-publication],
    [data-inventory-count],
    [data-stock-rule]
  )[aria-busy="true"]
  button:disabled {
  cursor: wait;
}

[data-stock-publication] .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
[data-stock-publication] .table {
  min-width: 32rem;
  table-layout: auto;
}
[data-stock-publication] .table :is(th, td) {
  white-space: nowrap;
  overflow-wrap: normal;
}
