/* Russian ingredient editor; desktop table and all calculations are retained. */
@media (max-width: 760px) {
  [data-dish-mobile] { overflow: visible !important; max-height: none !important; height: auto; }
  [data-dish-mobile] table { display: block; width: 100%; min-width: 0 !important; }
  [data-dish-mobile] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  [data-dish-mobile] tbody { display: grid; gap: 16px; }
  [data-dish-mobile] [data-dish-row] { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 8px; padding: 12px; border: 1px solid #dbe4ef; border-radius: 12px; background: #fff; }
  [data-dish-mobile] td { display: block; grid-column: span 3; min-width: 0; padding: 0; border: 0; position: static !important; box-shadow: none !important; white-space: normal; overflow-wrap: anywhere; }
  [data-dish-mobile] td::before { display: block; content: attr(data-dish-label); margin-bottom: 5px; color: #52647d; font-size: 12px; font-weight: 600; line-height: 1.35; }
  [data-dish-mobile] [data-dish-cell="food"] { grid-column: span 5; }
  [data-dish-mobile] [data-dish-cell="food"]::before,
  [data-dish-mobile] [data-dish-cell="remove"]::before { display: none; }
  [data-dish-mobile] [data-dish-cell="remove"] { grid-column: 6; grid-row: 1; justify-self: end; }
  [data-dish-mobile] [data-dish-remove] { min-width: 44px; min-height: 44px; width: 44px; height: 44px; }
  [data-dish-mobile] [data-dish-cell="price-mode"] { grid-column: 1 / -1; }
  [data-dish-mobile] [data-dish-cell="cost"],
  [data-dish-mobile] [data-dish-cell="kcal"],
  [data-dish-mobile] [data-dish-cell="protein"] { grid-column: span 2; padding: 8px 4px; border-radius: 6px; background: #f2f7fc; font-size: 14px; font-weight: 600; }
  [data-dish-mobile] input:not(.native-select-source),
  [data-dish-mobile] select:not(.native-select-source),
  [data-dish-mobile] .custom-select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  [data-dish-mobile] input:not(.native-select-source),
  [data-dish-mobile] .custom-select-button { min-height: 44px; font-size: 16px; }
  [data-dish-mobile] .custom-select-button span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  [data-dish-mobile] .product-cell { max-width: 100%; white-space: normal; }
  [data-dish-mobile] .product-cell-image { width: 48px; height: 36px; object-fit: cover; }
  [data-dish-mobile] .product-cell-state { display: block; margin-top: 5px; }
  [data-dish-mobile] [data-dish-field-error] { font-size: 12px; line-height: 1.4; }
}
