/* TAIF V5 — Sales/Purchase Mobile Toolbar Cleanup V1
   Scope: mobile mode only.
   - Hide the hybrid "عملية شراء / مبيع" toolbar button in Sales/Purchase.
   - Rename the mobile reverse action label from "عكس" to "إلغاء". */

@media (max-width: 860px){
  body.taif-mobile-mode .panel[data-view="sales-purchase-invoice"] button[data-sales-purchase-window="hybrid"]{
    display:none !important;
  }

  body.taif-mobile-mode .panel[data-view="sales-purchase-invoice"] .sales-purchase-toolbar__actions,
  body.taif-mobile-mode .panel[data-view="sales-purchase-invoice"] .entries-toolbar__actions{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }

  body.taif-mobile-mode .sales-purchase-modal-backdrop[data-sales-purchase-window-id] .entries-action-btn[data-sales-purchase-action="reverse-window-record"] .taif-control-text::after{
    content:"إلغاء" !important;
  }
}

@media (max-width: 390px){
  body.taif-mobile-mode .panel[data-view="sales-purchase-invoice"] .sales-purchase-toolbar__actions,
  body.taif-mobile-mode .panel[data-view="sales-purchase-invoice"] .entries-toolbar__actions{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }
}
