/* v127: stable mobile invoice item presentation. */
.reference-invoice .invoice-line > label:first-of-type { min-width: 0; }
.reference-invoice .invoice-line > label:first-of-type > select,
.reference-invoice .invoice-line > label:first-of-type > input { min-width: 0; }
.reference-invoice .line-product-photo,
.reference-invoice .line-product-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f3ea;
  color: var(--muted);
  flex: 0 0 72px;
}
.reference-invoice .line-product-photo { object-fit: contain; padding: 6px; }
.reference-invoice .line-product-photo-placeholder { flex-direction: column; gap: 3px; padding: 8px; }
.reference-invoice .line-product-photo-placeholder svg { width: 25px; height: 25px; color: var(--accent); }
.reference-invoice .line-product-photo-placeholder small { font-size: 9px; line-height: 1.1; text-align: center; white-space: normal; }
.reference-invoice .stock-availability { min-height: 16px; padding: 4px 7px; border-radius: 7px; background: var(--soft); overflow-wrap: anywhere; }
.reference-invoice .stock-availability.is-ok { background: #edf5ed; color: #356344; }
.reference-invoice .stock-availability.is-danger { background: #fff1ef; color: #a63832; }
.reference-invoice .v103-inline-edit { white-space: nowrap; }
.v127-fill-due { align-self: flex-start; min-height: 36px; padding: 7px 11px; font-size: 12px; }
@media (max-width: 390px) {
  .reference-invoice .line-product-photo,
  .reference-invoice .line-product-photo-placeholder { width: 64px; height: 64px; flex-basis: 64px; }
  .reference-invoice .line-product-photo-placeholder small { max-width: 54px; }
}
