/* Yavuz Plastik StockOS v1.7.36 — yalnız mobil/tablet güvenli düzeltmeler.
   Bu dosya HTML tarafında media=(max-width:820px) ile de yüklenir. */
:root{
  --yp1736-safe-bottom:env(safe-area-inset-bottom,0px);
  --yp1736-nav-space:84px;
}

/* Ana panel: var olan menü yapısını değiştirmeden yalnız ölçü/kontrast düzelt. */
html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar.mxso-sidebar{
  width:min(88vw,340px)!important;
  min-width:0!important;
  max-width:340px!important;
}
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-content{
  padding-bottom:calc(var(--yp1736-nav-space) + 28px + var(--yp1736-safe-bottom))!important;
  scroll-padding-bottom:calc(var(--yp1736-nav-space) + 36px + var(--yp1736-safe-bottom))!important;
}
html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-content{
  padding-bottom:calc(var(--yp1736-nav-space) + 112px + var(--yp1736-safe-bottom))!important;
}
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav{
  bottom:calc(6px + var(--yp1736-safe-bottom))!important;
}
html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-floating-quick-toggle{
  bottom:calc(var(--yp1736-nav-space) + 112px + var(--yp1736-safe-bottom))!important;
}

/* Koyu stok/operasyon kartlarında okunabilirlik. Seçiciler bilinçli olarak dar tutuldu. */
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-stock-op-hero-v1591 :is(h1,h2,h3,strong),
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-dashboard-hero :is(h1,h2,h3,strong){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-stock-op-hero-v1591 :is(p,small),
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-dashboard-hero :is(p,small){
  color:#d7e5f3!important;
  -webkit-text-fill-color:#d7e5f3!important;
}

/* Stok giriş/çıkışta alt yardımcı alan sabit alt menüyü örtmesin. */
html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant{
  bottom:calc(var(--yp1736-nav-space) + 8px + var(--yp1736-safe-bottom))!important;
  max-width:calc(100vw - 20px)!important;
  left:10px!important;
  right:10px!important;
}

/* POS: mevcut toolbar ve menü yapısını koru; yalnız dokunmatik/yerleşim güvenliği. */
html body.mxso-sector-terminal-shell{
  padding-bottom:calc(76px + var(--yp1736-safe-bottom))!important;
}
html body.mxso-sector-terminal-shell .mxso-pos-mobile-toolbar-v1625{
  position:sticky!important;
  top:0!important;
  z-index:650!important;
}
html body.mxso-sector-terminal-shell .mxso-pos-menu-drawer-v1625{
  width:min(88vw,340px)!important;
  max-width:340px!important;
}
html body.mxso-sector-terminal-shell .mxso-pos-mobile-bottom-nav,
html body.mxso-sector-terminal-shell .mxso-mobile-bottom-nav{
  bottom:calc(6px + var(--yp1736-safe-bottom))!important;
}

/* Canlı/WhatsApp panelleri: mevcut HTML'yi değiştirmeden telefonda alttan açılan güvenli panel. */
html body.mxso-sector-terminal-shell .mxso-pos-live-drawer,
html body.mxso-sector-terminal-shell .mxso-pos-wa-drawer{
  position:fixed!important;
  left:8px!important;
  right:8px!important;
  top:auto!important;
  bottom:calc(76px + var(--yp1736-safe-bottom))!important;
  width:auto!important;
  max-width:none!important;
  max-height:72dvh!important;
  overflow:auto!important;
  border-radius:20px!important;
}
html body.mxso-sector-terminal-shell .mxso-pos-live-drawer header,
html body.mxso-sector-terminal-shell .mxso-pos-wa-drawer header{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
}

/* Koyu POS başlıklarında açık yazı; beyaz içerik kartlarına dokunma. */
html body.mxso-sector-terminal-shell .mxso-pos-live-drawer header :is(h1,h2,h3,strong),
html body.mxso-sector-terminal-shell .mxso-pos-wa-drawer header :is(h1,h2,h3,strong){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.mxso-sector-terminal-shell .mxso-pos-live-drawer header :is(p,small,span),
html body.mxso-sector-terminal-shell .mxso-pos-wa-drawer header :is(p,small,span){
  color:#d7e5f3!important;
  -webkit-text-fill-color:#d7e5f3!important;
}

@media(max-width:560px){
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar.mxso-sidebar{
    width:min(90vw,328px)!important;
    max-width:328px!important;
  }
  html body.mxso-sector-terminal-shell .mxso-pos-menu-drawer-v1625{
    width:min(90vw,328px)!important;
    max-width:328px!important;
  }
  html body.mxso-sector-terminal-shell .mxso-pos-live-drawer,
  html body.mxso-sector-terminal-shell .mxso-pos-wa-drawer{
    left:6px!important;
    right:6px!important;
    bottom:calc(72px + var(--yp1736-safe-bottom))!important;
    max-height:70dvh!important;
    border-radius:18px!important;
  }
}
