/* Yavuz Plastik StockOS v1.7.34
 * Mobil/tablet son sözleşme: menü, kontrast, safe-area, stok asistanı ve sabit aksiyon çakışmaları.
 * Sadece standalone paneli hedefler; masaüstü >=1181px etkilenmez.
 */
@media (max-width:1180px){
  html body.mxso-standalone:not(.mxso-sector-terminal-shell){
    --ypm-nav-h:76px;
    --ypm-safe-bottom:env(safe-area-inset-bottom,0px);
    --ypm-menu-w:min(88vw,360px);
    overflow-x:hidden!important;
    background:#F4F7FB!important;
  }

  /* İçerik sabit alt menü / yardımcılar tarafından örtülmesin. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-content{
    padding-bottom:calc(var(--ypm-nav-h) + 34px + var(--ypm-safe-bottom))!important;
    scroll-padding-bottom:calc(var(--ypm-nav-h) + 46px + var(--ypm-safe-bottom))!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-content{
    padding-bottom:calc(var(--ypm-nav-h) + 92px + var(--ypm-safe-bottom))!important;
    scroll-padding-bottom:calc(var(--ypm-nav-h) + 112px + var(--ypm-safe-bottom))!important;
  }

  /* Mobil drawer tam ekran olmasın; sağda bağlam görülsün. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar.mxso-sidebar{
    width:var(--ypm-menu-w)!important;
    min-width:0!important;
    max-width:360px!important;
    border-right:1px solid rgba(255,255,255,.12)!important;
    border-radius:0 20px 20px 0!important;
    padding:10px!important;
    padding-top:calc(10px + env(safe-area-inset-top,0px))!important;
    padding-bottom:calc(14px + var(--ypm-safe-bottom))!important;
    background:linear-gradient(180deg,#061A38 0%,#082A50 56%,#05162F 100%)!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-nav-head{
    min-height:56px!important;
    margin:-10px -10px 8px!important;
    padding:calc(8px + env(safe-area-inset-top,0px)) 11px 8px!important;
    background:#061A38!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-nav-head strong{
    color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:15px!important;font-weight:600!important;letter-spacing:-.01em!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-nav-head span{
    color:#BED0E2!important;-webkit-text-fill-color:#BED0E2!important;font-size:10px!important;font-weight:400!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-nav-close{
    width:40px!important;height:40px!important;min-width:40px!important;border-radius:12px!important;
    background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
    font-size:22px!important;font-weight:400!important;
  }

  /* Arama daha kompakt, ikon SVG ile JS tarafından sağlanır. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-search-wrap{
    grid-template-columns:22px minmax(0,1fr)!important;gap:7px!important;min-height:44px!important;margin:0 0 10px!important;padding:0 10px!important;
    border-radius:14px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.13)!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-search{height:42px!important;min-height:42px!important;font-size:14px!important;font-weight:400!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-search::placeholder{color:#ABC1D8!important;-webkit-text-fill-color:#ABC1D8!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-search-wrap>.dashicons{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-v1734-search-icon{width:18px;height:18px;color:#DCEAF7;display:block;}

  /* Hızlı alan: sadece en gerekli 8 öğe görünür. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-quick-actions{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 10px!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-quick-actions a{
    min-height:62px!important;padding:7px 3px!important;border-radius:14px!important;background:rgba(255,255,255,.075)!important;
    border:1px solid rgba(255,255,255,.13)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:10px!important;font-weight:500!important;line-height:1.15!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-quick-actions a.is-secondary-v1734{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-v1734-icon{display:block;width:20px;height:20px;margin:0 auto 4px;color:#fff;}

  /* Görünüm seçenekleri ana menüyü uzatmasın. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-controls{
    margin:0 0 10px!important;padding:0!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;overflow:hidden!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-title{
    position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;margin:0!important;padding:0 12px!important;
    color:#EAF4FE!important;-webkit-text-fill-color:#EAF4FE!important;font-size:11px!important;font-weight:600!important;letter-spacing:.035em!important;cursor:pointer!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-title::after{content:'›'!important;width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.08);font-size:18px;transform:rotate(90deg);transition:transform .15s ease;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-controls.is-collapsed-v1734 .mxso-mobile-view-title::after{transform:rotate(0deg);}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-buttons{padding:0 9px 9px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-controls.is-collapsed-v1734 .mxso-mobile-view-buttons{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-view-buttons button{min-height:40px!important;border-radius:12px!important;font-size:12px!important;font-weight:500!important;}

  /* Bölüm kartları: yalnız aktif bölüm açık; aktif bağlantı turuncu çizgiyle belirgin. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-section{margin:0 0 7px!important;padding:6px!important;border-radius:15px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-section-title{min-height:42px!important;border-radius:12px!important;padding:0 11px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-section-title span{font-size:11px!important;font-weight:600!important;letter-spacing:.04em!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar a.mxso-nav-link{
    position:relative!important;grid-template-columns:38px minmax(0,1fr)!important;gap:9px!important;min-height:52px!important;padding:7px 9px!important;border-radius:13px!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar a.mxso-nav-link.is-active{
    background:linear-gradient(135deg,#126CEF,#0B4FA8)!important;border-color:rgba(255,255,255,.28)!important;box-shadow:none!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar a.mxso-nav-link.is-active::before{
    content:''!important;position:absolute!important;left:-6px!important;top:9px!important;bottom:9px!important;width:3px!important;border-radius:0 6px 6px 0!important;background:#FF8A1F!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-icon{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;background:rgba(255,255,255,.09)!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-icon .dashicons{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-icon .mxso-v1734-icon{width:19px;height:19px;margin:0;color:#fff;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-text strong{font-size:13px!important;font-weight:500!important;line-height:1.2!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-nav-text small{font-size:9.5px!important;font-weight:400!important;line-height:1.25!important;color:#B9CDE0!important;-webkit-text-fill-color:#B9CDE0!important;}

  /* Mobil alt bar: safe-area ve görünürlük. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav{
    left:10px!important;right:10px!important;bottom:calc(8px + var(--ypm-safe-bottom))!important;width:auto!important;max-width:none!important;min-height:66px!important;
    padding:5px!important;border-radius:18px!important;background:rgba(255,255,255,.97)!important;border:1px solid #D8E3EF!important;box-shadow:0 14px 34px rgba(7,27,58,.16)!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a{min-height:54px!important;border-radius:14px!important;color:#243A52!important;-webkit-text-fill-color:#243A52!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a strong{font-size:10px!important;font-weight:500!important;color:#243A52!important;-webkit-text-fill-color:#243A52!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a>.dashicons{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav .mxso-v1734-icon{width:21px;height:21px;color:#1766A8;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a.is-active{background:#EAF3FF!important;color:#0B5CAD!important;-webkit-text-fill-color:#0B5CAD!important;box-shadow:inset 0 0 0 1px #C9DDF3!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a.is-active strong{color:#0B5CAD!important;-webkit-text-fill-color:#0B5CAD!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-bottom-nav a.is-active .mxso-v1734-icon{color:#0B5CAD!important;}

  /* Hızlı işlem düğmesi formları kapatmasın. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-floating-quick-toggle{
    width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;right:14px!important;bottom:calc(var(--ypm-nav-h) + 18px + var(--ypm-safe-bottom))!important;border-radius:999px!important;padding:0!important;z-index:168!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-floating-quick-toggle strong{display:none!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-floating-quick-toggle{bottom:calc(var(--ypm-nav-h) + 96px + var(--ypm-safe-bottom))!important;}

  /* Stok giriş/çıkış mobil yardımcı dock: alt nav üstünde kompakt yatay araç çubuğu. */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant{
    left:10px!important;right:10px!important;bottom:calc(var(--ypm-nav-h) + 12px + var(--ypm-safe-bottom))!important;z-index:166!important;min-height:58px!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important;padding:6px!important;border-radius:18px!important;
  }
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant button,
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant a{min-height:42px!important;border-radius:12px!important;padding:0 4px!important;font-size:10px!important;font-weight:500!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant strong{display:none!important;}

  /* Koyu kartlarda okunabilirlik sözleşmesi (standalone içerik). */
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-force-blue-hero,.mxso-hero-blue,.mxso-dashboard-hero,.mxso-command-hero-card-v1147,.mxso-dark-card,.mxso-navy-card,.mxso-operation-hero)[style*="background"],
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-force-blue-hero,.mxso-hero-blue,.mxso-dashboard-hero,.mxso-command-hero-card-v1147,.mxso-dark-card,.mxso-navy-card,.mxso-operation-hero){color:#fff!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-force-blue-hero,.mxso-hero-blue,.mxso-dashboard-hero,.mxso-command-hero-card-v1147,.mxso-dark-card,.mxso-navy-card,.mxso-operation-hero) :is(h1,h2,h3,h4,strong,b){color:#fff!important;-webkit-text-fill-color:#fff!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) :is(.mxso-force-blue-hero,.mxso-hero-blue,.mxso-dashboard-hero,.mxso-command-hero-card-v1147,.mxso-dark-card,.mxso-navy-card,.mxso-operation-hero) :is(p,small,span:not(.dashicons)){color:#D7E5F3!important;-webkit-text-fill-color:#D7E5F3!important;}
}

@media (max-width:700px){
  html body.mxso-standalone:not(.mxso-sector-terminal-shell){--ypm-menu-w:min(88vw,350px);}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar.mxso-sidebar{width:var(--ypm-menu-w)!important;min-width:0!important;max-width:350px!important;border-radius:0 18px 18px 0!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-bar{min-height:58px!important;padding:7px 10px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-standalone-left>div>span{display:none!important;}
}

@media (max-width:430px){
  html body.mxso-standalone:not(.mxso-sector-terminal-shell){--ypm-menu-w:min(89vw,344px);}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) #mxsoMainSidebar .mxso-mobile-quick-actions a{min-height:58px!important;font-size:9.5px!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell) .mxso-mobile-stock-assistant{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-content{padding-bottom:calc(var(--ypm-nav-h) + 150px + var(--ypm-safe-bottom))!important;}
  html body.mxso-standalone:not(.mxso-sector-terminal-shell).mxso-has-stock-assistant-v1734 .mxso-floating-quick-toggle{bottom:calc(var(--ypm-nav-h) + 150px + var(--ypm-safe-bottom))!important;}
}
