/* The same control appears in several document layouts and in the cart. */
button.line-remove-button {
  display: inline-grid !important;
  place-items: center;
  width: 34px !important;
  min-width: 34px;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  color: #7b8797 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px;
  cursor: pointer;
}
button.line-remove-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
button.line-remove-button:enabled:is(:hover, :focus-visible) {
  color: #c12c35 !important;
  background: #fff1f2 !important;
  border-color: #f3b9be !important;
}
button.line-remove-button:focus-visible { outline: 2px solid #c12c35; outline-offset: 2px; }
button.line-remove-button:disabled { opacity: .45; cursor: default; }
@media (min-width: 768px) and (hover: hover) {
  :is(#orders-table, #shipments-list, #receipts-list, #transfers-list) > table > tbody > tr { cursor: pointer; }
  :is(#orders-table, #shipments-list, #receipts-list, #transfers-list) > table > tbody > tr:hover > td,
  :where(#results, #cart-body > .cart-grid) > table > tbody > tr:hover > td,
  :where(.editor-table, .shipment-edit-table) tr:hover > td,
  tr:where(:has(> td > .line-remove-button)):hover > td {
    background-color: #eaf3ff !important;
  }
}
tr:has(> td > .line-remove-button:enabled:is(:hover, :focus-visible)),
tr:has(> td > .line-remove-button:enabled:is(:hover, :focus-visible)) > td,
.order-catalog-added-row:has(.line-remove-button:enabled:is(:hover, :focus-visible)),
#transfer-selection p:has(> .line-remove-button:enabled:is(:hover, :focus-visible)) {
  background-color: #ffe4e6 !important;
}
@media (max-width: 767px) {
  button.line-remove-button { width: 40px !important; height: 40px !important; }
}
