.material-art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 11px;
  background: #f1f4ef;
}
.material-art > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.material-art > svg:not(:only-child) { position: absolute; inset: 0; background: #f1f4ef; }
.material-art--card { width: 64px; height: 64px; border-radius: 14px; }
.material-art--detail { width: 112px; height: 112px; border-radius: 22px; }
.material-art--picker { width: 36px; height: 36px; border-radius: 9px; }
.material-name { display: inline-flex; align-items: center; gap: 11px; min-width: 0; max-width: 100%; }
.material-name > .table-record-link { min-width: 0; }
.material-card-heading { display: flex; align-items: center; gap: 13px; min-width: 0; margin-bottom: 10px; }
.material-card-heading > strong { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.purchase-row-top > .material-card-heading { margin: 0; }
.detail-header > .material-art { margin-right: 16px; }
.detail-header:has(> .material-art) { justify-content: flex-start; }
.detail-header:has(> .material-art) > .material-detail-heading { flex: 1; min-width: 0; }
.reference-options .check:has(> .material-art) { align-items: center; gap: 8px; }
.reference-options .check > .material-picker-label { min-width: 0; overflow-wrap: anywhere; }
.reference-chip:has(> .material-art), .material-reference { display: inline-flex; align-items: center; gap: 8px; }
.material-reference { min-width: 0; }
.material-reference .quiet { min-width: 0; overflow-wrap: anywhere; }
/* Exact inventory presentation bindings only; legacy thumbnails keep their layout. */
.material-presentation {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  vertical-align: middle;
}
.material-presentation > .material-art,
.material-presentation > .material-art > svg:not(:only-child),
.material-presentation > .material-category { background: var(--material-presentation-background, #f1f4ef); }
.material-presentation > .material-art[data-art^="office-20261016-"] > img { box-sizing: border-box; padding: 7%; }
.material-presentation > .material-category {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 5px;
  color: #35413c;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.material-presentation--card > .material-category { font-size: 11px; }
.material-presentation--detail > .material-category { padding: 3px 8px; font-size: 12px; }
.detail-header > .material-presentation { margin-right: 16px; }
.detail-header:has(> .material-presentation) { justify-content: flex-start; }
.detail-header:has(> .material-presentation) > .material-detail-heading { flex: 1; min-width: 0; }
@media (max-width: 700px) {
  .material-art--detail { width: 84px; height: 84px; border-radius: 17px; }
  .detail-header > .material-art { margin-right: 10px; }
  .detail-header > .material-presentation { margin-right: 10px; }
  .purchase-row-top { align-items: center; }
  .purchase-row-top > .material-card-heading { gap: 9px; }
  .purchase-row .material-art--card { width: 52px; height: 52px; }
}
@media print { .material-art, .material-presentation { display: none; } }
