/* Yavuz Plastik Stok v1.7.2 — mobil/tablet akıcı kaydırma performans katmanı */
html{scroll-behavior:auto!important;-webkit-text-size-adjust:100%}
body.ypbs-standalone{overflow-x:hidden;overscroll-behavior-y:auto;touch-action:pan-y pinch-zoom}
body.ypbs-standalone .content-area,
body.ypbs-standalone .modal,
body.ypbs-standalone .modal-body,
body.ypbs-standalone .ypbs-drawer-scroll,
body.ypbs-standalone .ypbs-command-results,
body.ypbs-standalone .ypbs-help-modal,
body.ypbs-standalone .ypbs-camera-body,
body.ypbs-standalone .ypbs-live-list,
body.ypbs-standalone .ypbs-ops-body,
body.ypbs-standalone .ypbs-health-body,
body.ypbs-standalone .cart-lines,
body.ypbs-standalone .movement-list,
body.ypbs-standalone .wa-history,
body.ypbs-standalone .table-wrap,
body.ypbs-standalone .table-scroll,
body.ypbs-standalone .data-table-wrap{
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scroll-behavior:auto!important;
}
body.ypbs-standalone .table-wrap,
body.ypbs-standalone .table-scroll,
body.ypbs-standalone .data-table-wrap{touch-action:pan-x pan-y;scrollbar-gutter:stable}

/* Uzun listelerde yalnız görünür satırları boyat. Desteklemeyen tarayıcılar bu satırı yok sayar. */
body.ypbs-standalone .catalog-grid article,
body.ypbs-standalone .pos-product-grid>button,
body.ypbs-standalone .movement-list article,
body.ypbs-standalone .wa-history article,
body.ypbs-standalone .notification-list article,
body.ypbs-standalone .account-card,
body.ypbs-standalone .ypbs-live-item,
body.ypbs-standalone .ypbs-ops-critical-list article{
  content-visibility:auto;
  contain-intrinsic-size:auto 74px;
  contain:layout paint style;
}
body.ypbs-standalone .catalog-grid article{contain-intrinsic-size:auto 330px}
body.ypbs-standalone .pos-product-grid>button{contain-intrinsic-size:auto 180px}

.product-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:15px 18px 18px;border-top:1px solid #e3ebf2;background:#fbfdff}
.product-pagination button{min-width:110px;min-height:42px;border:1px solid #bfd2e3;border-radius:10px;background:#fff;color:#06376d;font-size:10px;font-weight:500}
.product-pagination button:disabled{opacity:.42;cursor:not-allowed}
.product-pagination span{display:flex;min-width:130px;flex-direction:column;align-items:center;gap:2px;color:#173f46}
.product-pagination strong{font-size:10px;font-weight:600}.product-pagination small{color:#718398;font-size:8px}

/* Kaydırma sırasında yalnız yüzen yardımcı katmanları gizle.
   Tüm DOM ağacının transition değerini değiştirmek metin titremesi ve pahalı style recalculation üretiyordu. */
body.ypbs-is-scrolling .ypbs-live-button,
body.ypbs-is-scrolling .ypbs-health-top,
body.ypbs-is-scrolling .ypbs-ops-top-critical,
body.ypbs-is-scrolling .ypbs-camera-toast,
body.ypbs-is-scrolling .ypbs-live-toast,
body.ypbs-is-scrolling .ypbs-usability-toast,
body.ypbs-is-scrolling .ypbs-ops-toast,
body.ypbs-is-scrolling .toast{opacity:0!important;pointer-events:none!important;transition:none!important}

@media(max-width:1024px),(pointer:coarse){
  /* Sticky/fixed başlıklar iOS ve düşük güçlü Android cihazlarda sürekli yeniden boyama yapıyordu. */
  body.ypbs-standalone .topbar{position:relative!important;top:auto!important}
  body.ypbs-standalone .modal>header,
  body.ypbs-standalone .ypbs-camera-head,
  body.ypbs-standalone .ypbs-help-modal>header,
  body.ypbs-standalone .ypbs-help-modal>footer,
  body.ypbs-standalone .ypbs-ops-actions{position:relative!important;top:auto!important;bottom:auto!important}
  body.ypbs-standalone .pos-cart{position:static!important;top:auto!important}

  /* Mobilde alt menü aynı işlevleri sunduğu için ek sabit düğmeleri kaldır. */
  body.ypbs-panel-mode .ypbs-live-button,
  body.ypbs-panel-mode .ypbs-health-top,
  body.ypbs-panel-mode .ypbs-ops-top-critical{display:none!important}

  /* Metin taşıyan alanlar zorunlu GPU katmanına alınmaz; mobil-visual-comfort son kararı verir. */
  body.ypbs-standalone .ypbs-bottom-nav{backface-visibility:visible;contain:none;transform:none}
  body.ypbs-standalone .sidebar{will-change:auto;backface-visibility:visible}

  /* Dokunmatik cihazlarda hover dönüşümleri kaydırma başlangıcını geciktirmesin. */
  body.ypbs-standalone .primary-button:hover,
  body.ypbs-standalone .pos-product-grid>button:hover,
  body.ypbs-standalone button:hover{transform:none!important;filter:none!important}

  body.ypbs-standalone .catalog-grid,
  body.ypbs-standalone .pos-product-grid,
  body.ypbs-standalone .stats-grid,
  body.ypbs-standalone .quick-actions{align-content:start}
}

@media(max-width:760px){
  .product-pagination{position:relative;display:grid;grid-template-columns:1fr auto 1fr;gap:8px;padding:12px}
  .product-pagination button{min-width:0;width:100%;padding:8px}
  .product-pagination span{min-width:0}
  body.ypbs-standalone .content-area{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
}

@media(prefers-reduced-motion:reduce){
  body.ypbs-standalone *,body.ypbs-standalone *::before,body.ypbs-standalone *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
