/*
 * Yavuz Plastik StockOS v1.6.32
 * Mobil/tablet sade görünüm, yatay kaydırma ve uzun metin dengeleme katmanı.
 * Masaüstü işleyişine dokunmaz.
 */

/* Ana panel hızlı işlemlerindeki bozuk kare/dashicon alanlarını tamamen kaldır. */
html body .mxso-yavuz-quick-menu-grid-v1611 > a > .dashicons{
  display:none!important;
}
html body .mxso-yavuz-quick-menu-grid-v1611 > a{
  gap:0!important;
}
html body .mxso-yavuz-quick-menu-grid-v1611 > a > div{
  min-width:0!important;
  width:100%!important;
}

/* Telefon/tablet ortak güvenli genişlik. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell),
html.mxso-v1631-tablet-landscape body.mxso-standalone:not(.mxso-sector-terminal-shell){
  overflow-x:hidden!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-app,.mxso-shell,.mxso-layout,.mxso-main,.mxso-content,.mxso-page,.mxso-panel),
html.mxso-v1631-tablet-landscape body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-app,.mxso-shell,.mxso-layout,.mxso-main,.mxso-content,.mxso-page,.mxso-panel){
  min-width:0!important;
  max-width:100%!important;
}

/* Üst işlem satırı sığmazsa sayfayı bozmak yerine yatay kayar. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-actions,
html.mxso-v1631-tablet-landscape body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:thin!important;
  -webkit-overflow-scrolling:touch!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-actions > *,
html.mxso-v1631-tablet-landscape body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-actions > *{
  flex:0 0 auto!important;
  scroll-snap-align:start!important;
  white-space:nowrap!important;
}

/* Ana panel hızlı işlemleri mobilde sağa-sola kayan sade kart şeridi. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-dashboard-quick-menu-v1611{
  padding:10px!important;
  overflow:hidden!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-head-v1611{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-bottom:7px!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-head-v1611 strong{
  font-size:16px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-head-v1611 span{
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611{
  display:grid!important;
  grid-template-columns:none!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(154px,44vw)!important;
  gap:7px!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:1px 2px 7px!important;
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:2px!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:thin!important;
  -webkit-overflow-scrolling:touch!important;
}
html.mxso-v1631-phone body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611{
  grid-auto-columns:minmax(146px,72vw)!important;
}
html.mxso-v1631-narrow body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611{
  grid-auto-columns:minmax(138px,82vw)!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611 > a{
  scroll-snap-align:start!important;
  min-width:0!important;
  min-height:54px!important;
  height:auto!important;
  padding:9px 10px!important;
  border-radius:12px!important;
  align-items:center!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611 > a strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:12.5px!important;
  line-height:1.22!important;
  font-weight:500!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-yavuz-quick-menu-grid-v1611 > a small{
  display:none!important;
}

/* Sağ hızlı işlem paneli mobilde tam genişlikte alt sayfa; içerik dikey kayar. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer{
  left:0!important;
  right:0!important;
  top:auto!important;
  bottom:calc(var(--mxso-v1631-nav-h,64px) + env(safe-area-inset-bottom,0px))!important;
  width:100%!important;
  max-width:none!important;
  height:min(78dvh,720px)!important;
  max-height:calc(100dvh - var(--mxso-v1631-nav-h,64px) - env(safe-area-inset-bottom,0px) - 8px)!important;
  padding:9px!important;
  border-radius:22px 22px 0 0!important;
  transform:translateY(calc(100% + 24px))!important;
  opacity:0!important;
  overflow:hidden!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer.is-open{
  transform:translateY(0)!important;
  opacity:1!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-quick-drawer-head{
  margin:0 0 7px!important;
  padding:10px 11px!important;
  border-radius:15px!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-quick-drawer-head span{
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-quick-drawer-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 2px 28px!important;
  margin:0!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer::after{
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar{
  padding:0 0 18px!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-title{
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-search-v1149{
  position:sticky!important;
  top:0!important;
  z-index:4!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:6px!important;
  padding:2px 0 8px!important;
  background:#f7faff!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-search-v1149 input{
  min-width:0!important;
  min-height:42px!important;
  font-size:14px!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-search-v1149 span{
  min-height:42px!important;
  padding:7px 9px!important;
  font-size:10.5px!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  overflow:visible!important;
  padding:0 0 18px!important;
}
html.mxso-v1631-phone body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-item{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:58px!important;
  padding:8px!important;
  border-radius:12px!important;
  text-align:center!important;
  overflow:hidden!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-icon{
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-copy{
  display:block!important;
  min-width:0!important;
  width:100%!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-item strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:11.5px!important;
  line-height:1.2!important;
  font-weight:500!important;
  overflow-wrap:anywhere!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-copy > span{
  display:none!important;
}

/* Mobilde gereksiz uzun yardımcı metinler düzeni bozmasın. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(
  .mxso-dashboard-hero-copy-v1588 > p,
  .mxso-dashboard-corporate-hero p,
  .mxso-dashboard-quick-toolbar-v1148,
  .mxso-section-description,
  .mxso-card-description,
  .mxso-panel-description,
  .mxso-helper-copy
){
  display:none!important;
}
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-card small,.mxso-kpi small,.mxso-nav-link small){
  line-height:1.2!important;
}
html.mxso-v1631-phone body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-sidebar .mxso-nav-link small{
  display:none!important;
}

/* Uzun başlıklar taşmasın; en fazla iki satır. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(
  .mxso-card h2,.mxso-card h3,.mxso-panel h2,.mxso-panel h3,.mxso-nav-link strong,
  .mxso-dashboard-global-search-card-v1151 strong
){
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* Kaydırılabilir bölgelerin uçlarında içerik kesilmiş hissi oluşmasın. */
html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(
  .mxso-yavuz-quick-menu-grid-v1611,
  .mxso-standalone-actions
){
  mask-image:linear-gradient(90deg,transparent 0,#000 9px,#000 calc(100% - 14px),transparent 100%)!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9px,#000 calc(100% - 14px),transparent 100%)!important;
}

/* Çok dar telefonlarda iki sütun korunur ama metin daha sakin olur. */
@media(max-width:380px){
  html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-item{
    min-height:54px!important;
    padding:7px 5px!important;
  }
  html.mxso-v1631-compact body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-right-rail.mxso-quick-drawer .mxso-quickbar-item strong{
    font-size:10.6px!important;
  }
}
