/* Preserve desktop table geometry. On narrow screens, keep each editable line together. */
@media(max-width:650px){
 #importShipmentsView>.accounting-table-wrap>table{display:block;min-width:0;width:100%}
 #importShipmentsView>.accounting-table-wrap>table>thead{display:none}
 #shipmentRows{display:grid;gap:12px;padding:12px}
 #shipmentRows>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dbe5f1;border-radius:10px;overflow:hidden;background:white}
 #shipmentRows>tr>td{display:block;min-width:0;max-width:100%;border:0;padding:10px;position:static;box-shadow:none;overflow-wrap:anywhere}
 #shipmentRows>tr>td:first-child,#shipmentRows>tr>td:last-child,#shipmentRows>tr>td[colspan]{grid-column:1/-1}
 #shipmentRows .shipment-product-match{max-width:100%;min-width:0;white-space:normal}
 #shipmentRows>tr>td:nth-child(2)::before{content:'Tedarikçi / menşe'}
 #shipmentRows>tr>td:nth-child(3)::before{content:'Aşama'}
 #shipmentRows>tr>td:nth-child(4)::before{content:'Varış'}
 #shipmentRows>tr>td:nth-child(5)::before{content:'Ürün satırı'}
 #shipmentRows>tr>td:nth-child(6)::before{content:'Eşleştirme kontrolü'}
 #shipmentRows>tr>td::before{display:block;font-size:11px;font-weight:600;color:#64748b;margin-bottom:6px}
 #shipmentRows .shipment-row-actions{display:flex;flex-wrap:wrap;min-width:0}
 #shipmentRows .shipment-row-actions>button{min-height:44px;flex:1 1 130px}
 #shipmentCreateDialog .shipment-draft-heading{flex-wrap:wrap;padding-inline:12px}
 #shipmentCreateDialog .shipment-draft-table{display:block;min-width:0;width:100%}
 #shipmentCreateDialog .shipment-draft-table thead{display:none}
 #shipmentDraftRows{display:grid;gap:12px;padding:8px 12px}
 #shipmentDraftRows tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dbe5f1;border-radius:10px;overflow:hidden;background:white}
 #shipmentDraftRows td{display:block;min-width:0;max-width:100%;border:0;padding:9px 10px;position:static;box-shadow:none;overflow-wrap:anywhere}
 #shipmentDraftRows td::before{display:block;font-size:11px;font-weight:600;color:#64748b;margin-bottom:6px}
 #shipmentDraftRows td:nth-child(1)::before{content:'Excel satırı'}
 #shipmentDraftRows td:nth-child(2)::before{content:'Stok kodu / kontrol'}
 #shipmentDraftRows td:nth-child(3)::before{content:'CRM ürün adı · otomatik'}
 #shipmentDraftRows td:nth-child(4)::before{content:'Miktar'}
 #shipmentDraftRows td:nth-child(5)::before{content:'Birim fiyat'}
 #shipmentDraftRows td:nth-child(6)::before{content:'Döviz'}
 #shipmentDraftRows td:nth-child(7)::before{content:'Satıra özel varış'}
 #shipmentDraftRows td:nth-child(2),#shipmentDraftRows td:nth-child(3),#shipmentDraftRows td:nth-child(7),#shipmentDraftRows td:nth-child(8),#shipmentDraftRows td[colspan]{grid-column:1/-1}
 #shipmentDraftRows td[colspan]::before{content:none}
 #shipmentCreateDialog .shipment-draft-table input{min-width:0;max-width:100%;box-sizing:border-box}
 #shipmentDraftRows td:nth-child(8){border-top:1px solid #e2e8f0;text-align:right}
 #shipmentDraftRows td:nth-child(8) button{min-height:44px}
 #shipmentCreateDialog .modal-header>div{min-width:0}
 #shipmentCreateDialog .modal-header h2{overflow-wrap:anywhere}
 #shipmentCreateDialog .modal-header>[data-close-dialog]{flex-shrink:0}
 #shipmentCreateDialog .shipment-upload label{min-width:0;max-width:100%}
 #shipmentExcelFile{max-width:100%}
}
