
@media (min-width:1000px){
  html,body{margin:0!important;min-width:1000px!important;background:#eef3f8!important;color:#0d2b4b!important;overflow-x:auto!important}
  body:before{display:none!important}
  #appShell{padding:0!important;min-height:100vh!important;background:#eef3f8!important}
  .bottom-nav,.movement-fab{display:none!important}
  .desktop-shell{display:block!important;width:100%!important;min-height:100vh!important}
  .ds-topbar{display:grid!important;grid-template-columns:350px minmax(360px,1fr) 270px!important;align-items:center!important;gap:18px!important;height:72px!important;padding:0 22px!important;background:linear-gradient(90deg,#052a4b,#0a4778)!important;color:#fff!important;box-sizing:border-box!important}
  .ds-brand{display:flex!important;align-items:center!important;gap:12px!important;border:0!important;background:transparent!important;color:#fff!important;text-align:left!important;padding:0!important}
  .ds-brand img{width:48px!important;height:48px!important;object-fit:contain!important}.ds-brand span{display:block!important}.ds-brand b{display:block!important;font-size:22px!important}.ds-brand em{display:block!important;color:#ff7a00!important;font-style:normal!important;font-size:19px!important;font-weight:800!important}
  .ds-search{height:40px!important;display:flex!important;align-items:center!important;gap:9px!important;border:0!important;border-radius:6px!important;background:#fff!important;color:#6a8095!important;padding:0 13px!important;text-align:left!important;box-shadow:inset 0 0 0 1px #d3dee8!important}
  .ds-search>span:nth-child(2){flex:1!important}.ds-search-icon{color:#ff7a00!important;font-size:22px!important}.ds-search kbd{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;background:#f6f8fa!important;border:1px solid #d7e0e9!important;border-radius:5px!important;padding:3px 6px!important}
  .ds-user{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important}.ds-avatar{width:40px!important;height:40px!important;border-radius:50%!important;background:#fff!important;color:#06375f!important;display:grid!important;place-items:center!important;font-weight:800!important}.ds-user b,.ds-user small{display:block!important}.ds-user b{font-size:14px!important}.ds-user small{font-size:12px!important;opacity:.82!important;margin-top:2px!important}
  .ds-tabs{display:flex!important;height:48px!important;background:#fff!important;border-bottom:1px solid #d8e2ec!important;padding-left:14px!important;box-sizing:border-box!important}.ds-tabs button{height:48px!important;padding:0 28px!important;border:0!important;border-right:1px solid #eef2f6!important;background:#fff!important;color:#17395c!important;font-weight:750!important}.ds-tabs button.active{background:#ff7900!important;color:#fff!important}
  .ds-ribbon{display:flex!important;align-items:stretch!important;min-height:96px!important;padding:8px 14px!important;background:#fff!important;border-bottom:1px solid #d8e2ec!important;box-sizing:border-box!important;overflow-x:auto!important}.ds-ribbon button{flex:0 0 105px!important;min-width:105px!important;border:0!important;border-right:1px solid #e4ebf1!important;background:#fff!important;color:#17395c!important;padding:7px 10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:12px!important}.ds-ribbon button span{font-size:28px!important;line-height:1!important;color:#0b4778!important}.ds-ribbon button span.orange{color:#ff7900!important}.ds-ribbon button span.green{color:#18a264!important}
  .ds-body{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;min-height:calc(100vh - 216px)!important;width:100%!important}
  .ds-sidebar{display:flex!important;flex-direction:column!important;background:linear-gradient(180deg,#052a4b,#073b65)!important;color:#fff!important;padding:14px 12px 18px!important;box-sizing:border-box!important;min-height:calc(100vh - 216px)!important}.ds-sidebar nav{display:grid!important;gap:4px!important}.ds-sidebar nav button{height:46px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#fff!important;display:flex!important;align-items:center!important;gap:11px!important;padding:0 14px!important;text-align:left!important;font-weight:650!important}.ds-sidebar nav button span{width:23px!important;text-align:center!important;font-size:18px!important}.ds-sidebar nav button.active{background:linear-gradient(90deg,#ff850e,#ff6f00)!important}.ds-status{margin-top:auto!important;padding:18px 10px 14px!important;border-top:1px solid rgba(255,255,255,.15)!important;display:flex!important;gap:9px!important}.ds-status i{width:13px!important;height:13px!important;border-radius:50%!important;background:#13c76a!important;margin-top:4px!important}.ds-status small,.ds-status b,.ds-status em{display:block!important}.ds-status small{opacity:.75!important}.ds-status b{font-size:13px!important;margin:2px 0!important}.ds-status em{font-size:11px!important;font-style:normal!important;opacity:.72!important}.ds-slogan{padding:14px 10px 4px!important;font-style:italic!important;font-size:15px!important}.ds-slogan:after{content:""!important;display:block!important;width:115px!important;border-bottom:3px solid #ff7900!important;transform:rotate(-6deg)!important;margin-top:6px!important}
  #mainView.main-view{width:100%!important;max-width:none!important;margin:0!important;padding:12px 14px 24px!important;min-height:auto!important;background:#eef3f8!important;color:#0d2b4b!important;box-sizing:border-box!important}
  .ds-page{max-width:1500px!important;margin:0 auto!important}.ds-welcome{display:grid!important;grid-template-columns:minmax(0,1fr) 220px 285px!important;gap:12px!important;margin-bottom:12px!important}.ds-welcome>div{background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;box-shadow:0 2px 8px rgba(16,50,82,.08)!important;padding:14px 18px!important;box-sizing:border-box!important}.ds-welcome h1{font-size:24px!important;margin:0 0 3px!important;color:#0d2b4b!important}.ds-welcome p{margin:0!important;color:#60758b!important;font-size:13px!important}.welcome-date{display:flex!important;flex-direction:column!important;justify-content:center!important}.welcome-date small{color:#577086!important}.welcome-date b{font-size:20px!important;margin-top:2px!important}.welcome-orange{display:flex!important;align-items:center!important;gap:12px!important;background:linear-gradient(100deg,#fff7f0,#ffe7d6)!important;color:#d85a00!important;border-color:#ffd6b8!important}.welcome-orange span{font-size:32px!important;color:#ff7900!important}
  .ds-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}.ds-kpis button{height:90px!important;border:1px solid #d8e2ec!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 8px rgba(16,50,82,.08)!important;display:grid!important;grid-template-columns:48px 1fr!important;grid-template-rows:auto auto auto!important;text-align:left!important;padding:12px 15px!important;color:#17395c!important}.ds-kpis button>span{grid-row:1/4!important;font-size:28px!important;color:#ff7900!important;align-self:center!important}.ds-kpis small{font-size:12px!important;color:#60758b!important}.ds-kpis b{font-size:23px!important;line-height:1.1!important}.ds-kpis em{font-size:11px!important;font-style:normal!important;color:#71869b!important}
  .ds-grid{display:grid!important;grid-template-columns:minmax(720px,1fr) 350px!important;gap:12px!important;align-items:start!important}.ds-panel,.ds-detail{background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;box-shadow:0 2px 8px rgba(16,50,82,.08)!important;overflow:hidden!important}.ds-panel-head{height:62px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 16px!important;border-bottom:1px solid #edf1f5!important}.ds-panel-head>div{display:flex!important;align-items:center!important;gap:9px!important}.ds-panel-head>div>span{color:#ff7900!important;font-size:22px!important}.ds-panel-head h2{font-size:20px!important;margin:0!important}.ds-panel-head>button{border:0!important;border-radius:6px!important;background:#ff7900!important;color:#fff!important;padding:10px 14px!important;font-weight:800!important}
  .ds-subtabs{display:flex!important;gap:20px!important;padding:0 16px!important;border-bottom:1px solid #e8eef4!important}.ds-subtabs button{height:42px!important;border:0!important;background:transparent!important;color:#395b7d!important;font-size:12px!important}.ds-subtabs button.active{color:#ff7900!important;border-bottom:2px solid #ff7900!important;font-weight:800!important}.ds-filters{display:grid!important;grid-template-columns:minmax(200px,1fr) 160px 170px 110px!important;gap:8px!important;padding:10px 14px!important;border-bottom:1px solid #edf1f5!important}.ds-filters button{height:36px!important;border:1px solid #d7e1eb!important;border-radius:5px!important;background:#fff!important;color:#385a7d!important;text-align:left!important;padding:0 10px!important}.ds-filters .search{display:flex!important;align-items:center!important;gap:8px!important}
  .ds-table-wrap{overflow:auto!important;max-height:550px!important}.ds-table{width:100%!important;border-collapse:collapse!important;font-size:12px!important;white-space:nowrap!important}.ds-table th{position:sticky!important;top:0!important;background:#f4f7fa!important;color:#244766!important;text-align:left!important;padding:9px 8px!important;border-bottom:1px solid #dce5ed!important}.ds-table td{padding:8px!important;border-bottom:1px solid #e8eef4!important;color:#294a69!important}.ds-table tbody tr{cursor:pointer!important}.ds-table tbody tr:hover{background:#f7faff!important}.ds-table tbody tr.selected{background:#fff0e3!important}.ds-table th.right,.ds-table td.right{text-align:right!important}.ds-thumb{width:28px!important;height:28px!important;border-radius:5px!important;background:#f2f5f8!important;display:grid!important;place-items:center!important;overflow:hidden!important}.ds-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}.ds-badge{display:inline-block!important;border-radius:999px!important;padding:3px 9px!important;font-size:11px!important;font-weight:800!important}.ds-badge.ok{background:#dff6e9!important;color:#178954!important}.ds-badge.warn{background:#fff0dd!important;color:#d76a00!important}.ds-row-actions{display:flex!important;gap:3px!important}.ds-row-actions button{width:28px!important;height:28px!important;border:0!important;background:transparent!important;color:#0c477a!important}.ds-table-foot{height:40px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 14px!important;color:#678097!important;font-size:11px!important;border-top:1px solid #e8eef4!important}
  .ds-detail{position:sticky!important;top:12px!important}.ds-detail-head{height:54px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 16px!important;border-bottom:1px solid #e8eef4!important}.ds-detail-head h2{font-size:18px!important;margin:0!important}.ds-detail-head button{border:0!important;background:transparent!important;font-size:24px!important;color:#315776!important}.ds-product{display:grid!important;grid-template-columns:100px 1fr!important;gap:13px!important;padding:14px 16px!important;align-items:center!important}.ds-product>img,.ds-noimg{width:100px!important;height:86px!important;border-radius:7px!important;background:#f3f6f8!important;object-fit:cover!important;display:grid!important;place-items:center!important;font-size:30px!important}.ds-product b,.ds-product small{display:block!important}.ds-product b{font-size:16px!important}.ds-product small{color:#60758b!important;margin:3px 0 8px!important}.ds-detail-tabs{display:flex!important;border-bottom:1px solid #e8eef4!important;padding:0 10px!important}.ds-detail-tabs button{height:40px!important;border:0!important;background:transparent!important;color:#466886!important;font-size:11px!important}.ds-detail-tabs button.active{color:#ff7900!important;border-bottom:2px solid #ff7900!important;font-weight:800!important}.ds-detail-list{margin:0!important;padding:12px 16px!important}.ds-detail-list>div{display:grid!important;grid-template-columns:130px 1fr!important;gap:8px!important;padding:7px 0!important;font-size:12px!important}.ds-detail-list dt{color:#60758b!important}.ds-detail-list dd{margin:0!important;color:#17395c!important;font-weight:600!important}.ds-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:13px 16px!important;border-top:1px solid #e8eef4!important}.ds-detail-actions button{height:40px!important;border:1px solid #d3dfe9!important;border-radius:5px!important;background:#fff!important;color:#17436d!important;font-weight:800!important}.ds-detail-actions button.primary{background:#ff7900!important;color:#fff!important;border-color:#ff7900!important}.ds-detail-empty{padding:60px 20px!important;text-align:center!important;color:#698197!important}.ds-detail-empty span{font-size:42px!important;color:#bfd0df!important}.ds-detail-empty b{display:block!important;color:#234968!important;margin:8px!important}
}
@media (max-width:999px){
  .desktop-shell{display:block!important}.ds-topbar,.ds-tabs,.ds-ribbon,.ds-sidebar{display:none!important}.ds-body{display:block!important}
}

@media (min-width:1000px){
  .ds-topbar button,.ds-tabs button,.ds-ribbon button,.ds-sidebar button,
  .ds-kpis button,.ds-panel button,.ds-detail button{cursor:pointer!important;pointer-events:auto!important}
  .ds-ribbon .svg-wrap{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;color:#0b4778!important}
  .ds-ribbon .svg-wrap.orange{color:#ff7900!important}
  .ds-svg-icon{width:30px!important;height:30px!important;display:block!important}
  .ds-sidebar .side-svg{width:24px!important;height:24px!important;display:grid!important;place-items:center!important}
  .ds-sidebar .side-svg .ds-svg-icon{width:20px!important;height:20px!important;color:#fff!important}
  .ds-row-actions button{cursor:pointer!important;pointer-events:auto!important}
  .ds-table tbody tr{pointer-events:auto!important}
}


/* =========================================================
   Build 0033 Rev5 – Alle Desktop-Seiten vereinheitlicht
   ========================================================= */
@media (min-width:1000px){

  /* General desktop page canvas */
  #mainView .target-page,
  #mainView .settings-page,
  #mainView .scanner-page,
  #mainView .article-page{
    background:#fff!important;
    border:1px solid #d8e2ec!important;
    border-radius:8px!important;
    box-shadow:0 2px 8px rgba(16,50,82,.08)!important;
    color:#17395c!important;
    overflow:hidden!important;
    min-height:calc(100vh - 260px)!important;
  }

  #mainView .target-topbar{
    min-height:64px!important;
    padding:0 18px!important;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    align-items:center!important;
    background:#fff!important;
    color:#0d2b4b!important;
    border-bottom:1px solid #e4ebf1!important;
    box-sizing:border-box!important;
  }
  #mainView .target-topbar h1{
    margin:0!important;
    font-size:22px!important;
    color:#0d2b4b!important;
  }
  #mainView .target-topbar small{
    display:block!important;
    margin-top:2px!important;
    color:#6c8398!important;
  }
  #mainView .target-topbar button{
    width:38px!important;height:38px!important;border:0!important;border-radius:6px!important;
    background:#f5f8fb!important;color:#0b4778!important;font-size:20px!important;
  }
  #mainView .target-content{
    padding:18px!important;
    background:#f7f9fc!important;
    min-height:calc(100vh - 325px)!important;
  }

  /* Warehouse overview */
  #mainView .warehouse-search,
  #mainView .article-search-row{
    display:flex!important;
    gap:10px!important;
    margin:0 0 14px!important;
  }
  #mainView .warehouse-search input,
  #mainView .article-search-row input{
    flex:1!important;
    min-height:42px!important;
    border:1px solid #d4e0eb!important;
    border-radius:6px!important;
    background:#fff!important;
    color:#17395c!important;
    padding:0 13px!important;
    box-shadow:none!important;
  }
  #mainView .warehouse-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
  }
  #mainView .warehouse-card{
    min-height:88px!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 24px!important;
    align-items:center!important;
    gap:12px!important;
    padding:14px!important;
    border:1px solid #d9e3ec!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#17395c!important;
    box-shadow:0 1px 4px rgba(20,54,85,.05)!important;
    text-align:left!important;
  }
  #mainView .warehouse-card:hover{
    border-color:#ffb06a!important;
    background:#fffaf5!important;
  }
  #mainView .warehouse-card strong{
    display:block!important;font-size:15px!important;color:#153d62!important;
  }
  #mainView .warehouse-card small{
    display:block!important;color:#6d8397!important;margin-top:3px!important;
  }
  #mainView .warehouse-card em{
    display:block!important;color:#d76600!important;font-style:normal!important;font-size:11px!important;margin-top:4px!important;
  }
  #mainView .warehouse-icon{
    width:44px!important;height:44px!important;border-radius:8px!important;
    display:grid!important;place-items:center!important;background:#eef4f9!important;color:#0a4778!important;
  }
  #mainView .chevron{font-size:24px!important;color:#8aa0b4!important}
  #mainView .floating-add{
    position:fixed!important;
    right:28px!important;bottom:28px!important;
    width:auto!important;height:44px!important;border-radius:7px!important;
    padding:0 16px!important;
    background:#ff7900!important;color:#fff!important;
    border:0!important;font-size:20px!important;
    box-shadow:0 6px 18px rgba(255,121,0,.25)!important;
  }

  /* Warehouse article rows */
  #mainView .article-list{
    display:grid!important;
    gap:8px!important;
  }
  #mainView .article-row{
    min-height:68px!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 22px!important;
    gap:12px!important;align-items:center!important;
    border:1px solid #dce5ed!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#17395c!important;
    padding:9px 12px!important;
    text-align:left!important;
  }
  #mainView .article-row:hover{background:#fffaf5!important;border-color:#ffc48e!important}
  #mainView .product-thumb{
    width:44px!important;height:44px!important;border-radius:7px!important;
    background:#eef3f7!important;overflow:hidden!important;display:grid!important;place-items:center!important;
  }
  #mainView .product-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}
  #mainView .article-copy strong{display:block!important;font-size:14px!important}
  #mainView .article-copy small{display:block!important;margin-top:4px!important;color:#6d8498!important}

  /* History page */
  #mainView .section-page-head{
    background:#fff!important;
    border:1px solid #d8e2ec!important;
    border-radius:8px 8px 0 0!important;
    padding:18px 20px!important;
    color:#0d2b4b!important;
    box-shadow:0 2px 8px rgba(16,50,82,.05)!important;
  }
  #mainView .section-page-head span{
    color:#ff7900!important;
    font-weight:800!important;
    font-size:12px!important;
    text-transform:uppercase!important;
    letter-spacing:.05em!important;
  }
  #mainView .section-page-head h1{
    margin:3px 0 0!important;font-size:23px!important;color:#0d2b4b!important;
  }
  #mainView .page-subtitle{
    margin:0!important;padding:14px 20px!important;
    background:#fff!important;color:#61798f!important;
    border-left:1px solid #d8e2ec!important;border-right:1px solid #d8e2ec!important;
  }
  #mainView .history-warehouse-grid{
    background:#f7f9fc!important;
    padding:18px!important;
    border:1px solid #d8e2ec!important;border-top:0!important;
    border-radius:0 0 8px 8px!important;
  }
  #mainView>.btn-wide{
    width:auto!important;
    margin:14px 20px!important;
    min-height:42px!important;
    padding:0 16px!important;
    border-radius:6px!important;
    background:#ff7900!important;
  }

  /* Scanner page */
  #mainView .scanner-body{
    padding:18px!important;background:#f7f9fc!important;color:#17395c!important;min-height:calc(100vh - 325px)!important;
  }
  #mainView .scanner-tabs{
    display:flex!important;gap:0!important;border-bottom:1px solid #dce5ed!important;background:#fff!important;
    border-radius:7px 7px 0 0!important;
  }
  #mainView .scanner-tabs button{
    min-width:140px!important;height:42px!important;border:0!important;background:#fff!important;color:#486986!important;
  }
  #mainView .scanner-tabs button.active{
    color:#ff7900!important;border-bottom:2px solid #ff7900!important;font-weight:800!important;
  }
  #mainView .scanner-stage{
    background:#fff!important;border:1px solid #dce5ed!important;border-top:0!important;
    padding:28px!important;text-align:center!important;
  }
  #mainView .scanner-frame{
    width:320px!important;height:220px!important;margin:0 auto!important;
    border:2px solid #0a4778!important;border-radius:12px!important;background:#f2f6f9!important;
  }
  #mainView .scanner-qr{font-size:72px!important;color:#0a4778!important}
  #mainView .scanner-bottom{
    display:flex!important;justify-content:center!important;gap:10px!important;margin-top:14px!important;
  }
  #mainView .scanner-bottom button{
    min-width:180px!important;min-height:48px!important;border:1px solid #d4e0ea!important;border-radius:7px!important;
    background:#fff!important;color:#17476f!important;
  }

  /* Settings / More */
  #mainView .settings-content{padding:18px!important;background:#f7f9fc!important}
  #mainView .profile-card{
    display:flex!important;align-items:center!important;gap:14px!important;
    background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;padding:16px!important;
    margin-bottom:14px!important;color:#17395c!important;
  }
  #mainView .profile-card>span{
    width:48px!important;height:48px!important;border-radius:50%!important;
    display:grid!important;place-items:center!important;background:#073b65!important;color:#fff!important;font-weight:800!important;
  }
  #mainView .profile-card strong,#mainView .profile-card small{display:block!important}
  #mainView .profile-card small{color:#6e8498!important;margin-top:3px!important}
  #mainView .settings-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #mainView .settings-list button{
    min-height:62px!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr) 20px!important;
    align-items:center!important;
    gap:10px!important;
    border:1px solid #d8e2ec!important;
    border-radius:8px!important;
    background:#fff!important;color:#17395c!important;
    padding:10px 14px!important;text-align:left!important;
  }
  #mainView .settings-list button:hover{
    border-color:#ffbb7a!important;background:#fffaf5!important;
  }
  #mainView .settings-list button>span{
    font-size:20px!important;color:#ff7900!important;text-align:center!important;
  }
  #mainView .settings-list button>b:last-child{
    font-size:20px!important;color:#8aa0b4!important;
  }
  #mainView .settings-list .logout-row{
    border-color:#ffd8d3!important;color:#a83b31!important;
  }
  #mainView .version-line{color:#7a8fa2!important;padding:12px 2px!important}

  /* All modals: desktop business style instead of mobile sheet */
  .modal{
    align-items:center!important;
    justify-content:center!important;
    padding:30px!important;
    background:rgba(4,24,43,.58)!important;
    backdrop-filter:blur(3px)!important;
  }
  .modal-sheet{
    width:min(780px,calc(100vw - 100px))!important;
    max-height:86vh!important;
    margin:0!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#17395c!important;
    padding:22px!important;
    box-shadow:0 24px 70px rgba(3,29,52,.32)!important;
    overflow:auto!important;
  }
  .modal-close{
    position:absolute!important;right:16px!important;top:13px!important;
    width:36px!important;height:36px!important;border:0!important;border-radius:6px!important;
    background:#f3f6f9!important;color:#315675!important;font-size:22px!important;
  }
  .modal-sheet h2{
    margin:0 48px 18px 0!important;
    padding-bottom:13px!important;
    border-bottom:1px solid #e4ebf1!important;
    color:#0d2b4b!important;font-size:22px!important;
  }
  .modal-sheet h3{color:#17395c!important}
  .modal-sheet label{
    color:#496984!important;font-size:12px!important;font-weight:700!important;
  }
  .modal-sheet input,.modal-sheet select,.modal-sheet textarea{
    width:100%!important;box-sizing:border-box!important;
    border:1px solid #cedbe6!important;border-radius:6px!important;
    background:#fff!important;color:#17395c!important;
    min-height:42px!important;padding:9px 11px!important;
  }
  .modal-sheet input:focus,.modal-sheet select:focus,.modal-sheet textarea:focus{
    outline:none!important;border-color:#ff9700!important;box-shadow:0 0 0 3px rgba(255,121,0,.12)!important;
  }
  .modal-sheet .btn{
    min-height:42px!important;border-radius:6px!important;font-weight:800!important;
  }
  .modal-sheet .btn-primary{background:#ff7900!important;border-color:#ff7900!important;color:#fff!important}
  .modal-sheet .btn-secondary{background:#fff!important;border:1px solid #ccd9e4!important;color:#17476f!important}
  .modal-sheet .notice{
    background:#f0f5fa!important;color:#315775!important;border:1px solid #dce6ee!important;border-radius:7px!important;
  }
  .modal-sheet .info-card,.modal-sheet .user-row,.modal-sheet .low-stock-card{
    background:#fff!important;color:#17395c!important;border:1px solid #dce5ed!important;border-radius:7px!important;
  }

  /* Global search modal specifically */
  .modal-sheet .global-search-results{
    display:grid!important;gap:7px!important;margin-top:12px!important;
  }
  .modal-sheet .global-search-result{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto 20px!important;
    gap:12px!important;align-items:center!important;
    border:1px solid #dce5ed!important;border-radius:7px!important;background:#fff!important;color:#17395c!important;
    padding:10px 12px!important;text-align:left!important;
  }
  .modal-sheet .global-search-result:hover{background:#fffaf5!important;border-color:#ffbc7e!important}
  .modal-sheet .global-search-main strong{display:block!important}
  .modal-sheet .global-search-main small,.modal-sheet .global-search-main em{display:block!important;color:#71879a!important;font-style:normal!important;margin-top:2px!important}
  .modal-sheet .global-search-stock{text-align:right!important}
}


/* =========================================================
   Build 0033 Rev6 – Desktop dialogs & navigation corrections
   ========================================================= */
@media (min-width:1000px){
  .modal-sheet:has(.detail-screen),
  .modal-sheet:has(.inventory-screen),
  .modal-sheet:has(.movement-screen),
  .modal-sheet:has(.printer-settings-screen),
  .modal-sheet:has(.editor-screen){width:min(920px,calc(100vw - 120px))!important;height:auto!important;max-height:86vh!important;padding:0!important;overflow:auto!important;background:#f7f9fc!important}

  /* Article details: desktop document/card style */
  .detail-screen{min-height:0!important;background:#f7f9fc!important;color:#17395c!important;padding:0 0 18px!important}
  .detail-screen .modal-topbar{min-height:62px!important;padding:0 18px!important;background:#fff!important;color:#0d2b4b!important;border-bottom:1px solid #dce5ed!important;grid-template-columns:40px 1fr 40px!important}
  .detail-screen .modal-topbar h2{font-size:21px!important;color:#0d2b4b!important}
  .detail-screen .modal-topbar button{color:#174b75!important;background:#f2f6f9!important;border-radius:6px!important;width:34px!important;height:34px!important}
  .detail-media{display:grid!important;grid-template-columns:minmax(0,1fr) 180px!important;gap:14px!important;padding:18px 18px 10px!important;background:#f7f9fc!important}
  .detail-photo-card,.detail-qr-card{height:250px!important;background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;box-shadow:none!important}
  .detail-product-image{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}
  .detail-qr-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#17395c!important}
  .detail-inline-qr,.detail-inline-qr svg{width:118px!important;height:118px!important}
  .detail-title-row{margin:0 18px!important;padding:12px 0!important;border-bottom:1px solid #dce5ed!important}
  .detail-title-row h3{font-size:20px!important;color:#0d2b4b!important}
  .detail-table{margin:0 18px!important;padding:12px 0!important;display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:28px!important}
  .detail-table>div{grid-template-columns:145px minmax(0,1fr)!important;padding:7px 0!important;border-bottom:1px solid #e7edf2!important}
  .detail-table dt{font-size:12px!important;color:#6f8598!important}.detail-table dd{font-size:13px!important;color:#17395c!important;font-weight:650!important}
  .detail-footer{margin:4px 18px 0!important;padding:0!important;grid-template-columns:1fr 1fr!important}.detail-footer button{min-height:44px!important;border-radius:6px!important}
  .detail-footer .reorder-action{background:#fff4e8!important;color:#b85a00!important;border:1px solid #ffc88f!important}.detail-footer .danger-action{grid-column:1/-1!important;background:#fff!important;color:#c13e3e!important;border:1px solid #efbcbc!important}

  /* Inventory */
  .inventory-screen{padding:20px!important;background:#f7f9fc!important;color:#17395c!important}
  .inventory-topline{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;border-bottom:1px solid #dce5ed!important;padding-bottom:13px!important;margin-bottom:14px!important}
  .inventory-topline h2{margin:0!important;color:#0d2b4b!important;font-size:22px!important}.inventory-topline button{border:0!important;background:#eaf2fb!important;color:#1769aa!important;border-radius:6px!important;padding:9px 12px!important;font-weight:750!important}
  .inventory-summary{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:10px!important;margin:14px 0!important}
  .inventory-summary>div{background:#fff!important;border:1px solid #d8e2ec!important;border-top:3px solid #ff7900!important;border-radius:7px!important;padding:14px!important;color:#17395c!important;text-align:left!important}
  .inventory-summary strong{font-size:20px!important;color:#0d3e68!important}.inventory-summary small{display:block!important;color:#71879a!important;margin-top:4px!important}
  .inventory-export-actions{display:flex!important;gap:10px!important;margin:12px 0!important}.inventory-export-actions button{flex:0 0 auto!important;min-width:160px!important;padding:10px 14px!important;border:1px solid #cddbe6!important;border-radius:6px!important;background:#fff!important;color:#1769aa!important;font-weight:750!important}
  .inventory-list{display:grid!important;gap:7px!important}.inventory-row{background:#fff!important;border:1px solid #dce5ed!important;border-radius:7px!important;padding:11px 13px!important;color:#17395c!important}.inventory-copy strong{color:#17395c!important}.inventory-copy small{color:#71879a!important}.inventory-copy em.ok{color:#179154!important}

  /* Movement selection and booking */
  .modal-sheet:has(#moveArticle){width:min(680px,calc(100vw - 120px))!important;min-height:0!important}
  .modal-sheet:has(#moveArticle) #modalBody{min-height:0!important;padding:22px!important}
  .movement-screen{min-height:0!important;background:#f7f9fc!important;color:#17395c!important;padding-bottom:20px!important}.movement-screen .modal-topbar{min-height:60px!important;padding:0 18px!important;background:#fff!important;color:#0d2b4b!important;border-bottom:1px solid #dce5ed!important}.movement-screen .modal-topbar h2{color:#0d2b4b!important;font-size:21px!important}.movement-screen .modal-topbar button{color:#174b75!important;background:#f2f6f9!important;border-radius:6px!important}
  .movement-product{margin:16px 18px 8px!important;padding:14px!important;border-radius:7px!important}.movement-toggle{padding:8px 18px!important}.movement-toggle button{border-radius:6px!important;padding:11px!important}.movement-toggle button.active{background:#1e9e58!important}.movement-toggle button.active.out{background:#ff7900!important;color:#fff!important}.movement-screen>label{margin:10px 18px 0!important}.movement-preview{margin:10px 18px!important}.movement-submit{width:calc(100% - 36px)!important;margin:12px 18px 0!important;border-radius:6px!important}

  /* Printer / labels */
  .printer-settings-screen{padding:22px!important}.desktop-dialog-head{display:flex!important;justify-content:space-between!important;gap:20px!important;align-items:center!important;background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;padding:16px 18px!important;margin-bottom:14px!important}.desktop-dialog-head small{color:#ff7900!important;text-transform:uppercase!important;font-weight:850!important;letter-spacing:.05em!important}.desktop-dialog-head h2{border:0!important;margin:2px 0 4px!important;padding:0!important;color:#0d2b4b!important}.desktop-dialog-head p{margin:0!important;color:#6d8397!important}.desktop-dialog-icon{font-size:36px!important;color:#ff7900!important}.printer-settings-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}.desktop-panel{background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;padding:16px!important}.desktop-panel h3{margin:0 0 14px!important;color:#17395c!important}.desktop-panel label{display:block!important;color:#526f88!important;font-weight:750!important}.desktop-panel select{margin:6px 0 12px!important}.desktop-info-list{margin:0 0 14px!important}.desktop-info-list>div{display:grid!important;grid-template-columns:110px 1fr!important;padding:8px 0!important;border-bottom:1px solid #e7edf2!important}.desktop-info-list dt{color:#71879a!important}.desktop-info-list dd{margin:0!important;color:#17395c!important;font-weight:700!important}

  /* Camera window */
  .editor-camera-overlay{align-items:center!important;padding:30px!important;background:rgba(4,24,43,.62)!important}.editor-camera-sheet{width:min(820px,calc(100vw - 100px))!important;border-radius:10px!important;padding:18px!important;background:#fff!important;color:#17395c!important}.editor-camera-title{border-bottom:1px solid #dce5ed!important;padding-bottom:12px!important}.editor-camera-sheet .video-wrap{min-height:420px!important;max-height:58vh!important;border-radius:8px!important}.editor-camera-sheet video{max-height:58vh!important}.editor-camera-sheet .btn-primary{background:#ff7900!important;border-color:#ff7900!important}.editor-camera-sheet .btn-secondary{background:#fff!important;color:#174b75!important;border:1px solid #ccd9e4!important}

  /* App settings should be compact */
  .modal-sheet:has(.info-card){min-height:0!important}
}


/* =========================================================
   Build 0033 Rev7 – Vollständiger Desktop-Dialog-Audit
   Einheitliche Office-/Business-Darstellung für alle Fenster
   ========================================================= */
@media (min-width:1000px){
  /* Wichtig: alte mobile 760px-Fensterhöhe endgültig neutralisieren */
  .modal-sheet{
    height:auto!important;
    min-height:0!important;
    max-height:86vh!important;
  }
  .modal-sheet #modalBody{
    min-height:0!important;
    height:auto!important;
  }

  /* Standardfenster: kompakt statt großer leerer Fläche */
  .modal-sheet:not(:has(.detail-screen)):not(:has(.inventory-screen)):not(:has(.stock-overview)):not(:has(.history-screen)):not(:has(.editor-screen)):not(:has(.movement-screen)):not(:has(.printer-settings-screen)){
    width:min(820px,calc(100vw - 120px))!important;
    padding:22px!important;
  }

  /* Einheitliche Kopfzeilen und Hilfetexte */
  .modal-sheet h2{
    font-size:22px!important;
    line-height:1.2!important;
    color:#0d2b4b!important;
    border-bottom:1px solid #e2eaf1!important;
    margin:0 44px 14px 0!important;
    padding:0 0 12px!important;
  }
  .modal-sheet .helper-text{
    color:#6b8195!important;
    line-height:1.45!important;
    margin:0 0 14px!important;
    text-align:left!important;
  }

  /* Kategorien, Benutzer, Lagerorte, Archive und Stammdaten */
  .modal-sheet .user-row,
  .modal-sheet .archive-article-list .user-row,
  .modal-sheet .inventory-archive-row{
    min-height:58px!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    padding:10px 12px!important;
    margin:7px 0!important;
    background:#fff!important;
    border:1px solid #d9e3ec!important;
    border-radius:7px!important;
    box-shadow:0 1px 3px rgba(20,54,85,.04)!important;
  }
  .modal-sheet .user-row .grow{flex:1!important;min-width:0!important}
  .modal-sheet .user-row strong{color:#17395c!important;font-size:14px!important}
  .modal-sheet .user-row small{color:#74899b!important;margin-left:4px!important}
  .modal-sheet .user-row button,
  .modal-sheet .archive-article-list button{
    min-height:36px!important;
    border-radius:6px!important;
    padding:0 12px!important;
    border:1px solid #cddbe6!important;
    background:#f5f9fd!important;
    color:#1769aa!important;
    font-weight:750!important;
  }
  .modal-sheet .user-row button:hover,
  .modal-sheet .archive-article-list button:hover{
    border-color:#ffbd7d!important;
    background:#fff7ef!important;
    color:#d96500!important;
  }

  /* Primäre Aktionen oben in Listen */
  .modal-sheet>.btn-primary.btn-wide,
  .modal-sheet #modalBody>.btn-primary.btn-wide,
  .modal-sheet form.stack-form>.btn-primary,
  .modal-sheet form.stack-form button[type="submit"]{
    width:100%!important;
    min-height:44px!important;
    background:#ff7900!important;
    color:#fff!important;
    border:1px solid #ff7900!important;
    border-radius:6px!important;
    font-weight:850!important;
    margin-bottom:10px!important;
  }

  /* Stack-/Form-Layouts */
  .modal-sheet .stack-form,
  .modal-sheet .form-grid{
    display:grid!important;
    gap:11px!important;
  }
  .modal-sheet .stack-form label,
  .modal-sheet .form-grid label{
    display:grid!important;
    gap:5px!important;
    color:#506d86!important;
    font-weight:750!important;
  }
  .modal-sheet .form-actions{
    display:flex!important;
    gap:9px!important;
    justify-content:flex-end!important;
    margin-top:12px!important;
  }

  /* Nachbestellliste / Niedriger Bestand */
  .modal-sheet:has(.reorder-screen),
  .modal-sheet:has(.low-stock-list){
    width:min(860px,calc(100vw - 120px))!important;
  }
  .reorder-screen{padding:0!important;color:#17395c!important}
  .reorder-screen .notice,
  .low-stock-list .notice{
    padding:13px 14px!important;
    background:#f1f6fa!important;
    border:1px solid #dce6ee!important;
    color:#315775!important;
    border-radius:7px!important;
  }
  .low-stock-list{display:grid!important;gap:8px!important}
  .low-stock-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:12px 14px!important;
  }
  .low-stock-card strong{display:block!important;color:#17395c!important}
  .low-stock-card small{display:block!important;color:#71879a!important;margin-top:3px!important}

  /* Allgemeine Info-/Einstellungsfenster */
  .modal-sheet:has(.info-card):not(:has(.stock-overview)){
    width:min(700px,calc(100vw - 120px))!important;
  }
  .modal-sheet .info-card{
    padding:14px 16px!important;
    margin:9px 0!important;
    background:#fff!important;
    border:1px solid #d8e2ec!important;
    border-left:4px solid #ff7900!important;
    border-radius:7px!important;
    box-shadow:none!important;
  }
  .modal-sheet .info-card strong{display:block!important;color:#17395c!important}
  .modal-sheet .info-card p{margin:5px 0 0!important;color:#6c8295!important}

  /* Inventurübersicht und Inventurarchiv */
  .modal-sheet:has(.inventory-screen){
    width:min(980px,calc(100vw - 100px))!important;
  }
  .inventory-overview .inventory-overview-card{
    background:#fff!important;
    border:1px solid #d8e2ec!important;
    border-left:4px solid #ff7900!important;
    border-radius:8px!important;
    padding:14px 16px!important;
    margin:9px 0!important;
    color:#17395c!important;
  }
  .inventory-overview-card strong{color:#0d2b4b!important}
  .inventory-overview-card small,.inventory-overview-card span{color:#71879a!important}
  .inventory-overview-card button{
    border:0!important;background:#ff7900!important;color:#fff!important;
    border-radius:6px!important;padding:9px 13px!important;font-weight:800!important;
  }
  .inventory-section-title{
    margin:18px 0 8px!important;
    color:#0d2b4b!important;
    font-size:15px!important;
    font-weight:850!important;
  }
  .inventory-archive-list{display:grid!important;gap:7px!important}

  /* Lagerübersicht / Auswertung */
  .modal-sheet:has(.stock-overview){
    width:min(1080px,calc(100vw - 90px))!important;
    padding:0!important;
    background:#f7f9fc!important;
  }
  .stock-overview{padding:20px!important;color:#17395c!important}
  .stock-overview-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:16px!important;padding-bottom:14px!important;border-bottom:1px solid #dce5ed!important;
  }
  .stock-overview-head h2{border:0!important;margin:0!important;padding:0!important}
  .stock-overview .stock-kpis,
  .stock-overview .stock-summary-grid{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;
  }
  .stock-overview .stock-kpi,
  .stock-overview .stock-summary-card{
    background:#fff!important;border:1px solid #d8e2ec!important;border-top:3px solid #ff7900!important;
    border-radius:7px!important;color:#17395c!important;
  }

  /* Historie */
  .modal-sheet:has(.history-screen){
    width:min(980px,calc(100vw - 100px))!important;
    padding:0!important;
    background:#f7f9fc!important;
  }
  .history-screen{background:#f7f9fc!important;color:#17395c!important;min-height:0!important}
  .history-screen .modal-topbar{
    min-height:60px!important;background:#fff!important;color:#0d2b4b!important;
    border-bottom:1px solid #dce5ed!important;padding:0 18px!important;
  }
  .history-screen .modal-topbar h2{color:#0d2b4b!important;border:0!important;margin:0!important;padding:0!important}
  .history-content{padding:16px 18px 20px!important}
  .history-row{
    background:#fff!important;border:1px solid #dce5ed!important;border-radius:7px!important;
    color:#17395c!important;padding:11px 13px!important;box-shadow:none!important;
  }

  /* Artikelwahl, Menüs und kleine Auswahlfenster */
  .modal-sheet:has(.choice-grid),
  .modal-sheet:has(.article-choice-grid),
  .modal-sheet:has(.movement-choice-compact){
    width:min(720px,calc(100vw - 120px))!important;
  }
  .choice-grid,.article-choice-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .choice-card,.article-choice{
    min-height:100px!important;
    border:1px solid #d8e2ec!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#17395c!important;
    padding:14px!important;
    box-shadow:none!important;
  }
  .choice-card:hover,.article-choice:hover{background:#fff8f1!important;border-color:#ffbc7e!important}
  .choice-card>span,.article-choice>span{color:#ff7900!important;font-size:28px!important}
  .choice-card strong,.article-choice strong{color:#17395c!important}
  .choice-card small,.article-choice small{color:#71879a!important}

  /* Label/QR-Etikett */
  .modal-sheet:has(.label-controls){
    width:min(820px,calc(100vw - 120px))!important;
  }
  .label-controls{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
    margin-bottom:14px!important;
  }
  .label-preview{
    background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;
    padding:16px!important;
  }

  /* Artikel bearbeiten / neu anlegen */
  .modal-sheet:has(.editor-screen){
    width:min(980px,calc(100vw - 100px))!important;
    padding:0!important;
  }
  .editor-screen{background:#f7f9fc!important;color:#17395c!important}
  .editor-screen .editor-content{padding:18px!important}
  .editor-screen .editor-topbar,
  .editor-screen .modal-topbar{
    background:#fff!important;color:#0d2b4b!important;border-bottom:1px solid #dce5ed!important;
  }
  .editor-photo{
    background:#fff!important;border:1px solid #d8e2ec!important;border-radius:8px!important;
  }

  /* Success- und Warnfenster */
  .success-card{
    padding:18px!important;background:#f2fbf6!important;border:1px solid #ccebd8!important;
    border-left:4px solid #1ca463!important;border-radius:8px!important;color:#195d3a!important;
  }
  .success-card strong{color:#155e3a!important;font-size:17px!important}

  /* Über-App-Fenster */
  .modal-sheet .qr-wrap{
    text-align:center!important;padding:18px!important;background:#f7f9fc!important;border:1px solid #dce5ed!important;border-radius:8px!important;
  }
  .modal-sheet .qr-wrap .brand-symbol{color:#ff7900!important}

  /* Orange primär, Blau sekundär – konsistent im gesamten Desktop */
  .modal-sheet .btn-primary,
  .modal-sheet button[type="submit"].btn-primary{
    background:#ff7900!important;color:#fff!important;border-color:#ff7900!important;
  }
  .modal-sheet .btn-primary:hover{background:#e96e00!important;border-color:#e96e00!important}
  .modal-sheet .btn-secondary:hover{background:#f3f7fb!important}
}


/* Build 0033 Rev8 – flexible Artikeldetails, App-Einstellungen, QR-Schnellzugriff */
@media (min-width:1000px){
  .ds-grid.no-detail{grid-template-columns:minmax(0,1fr)!important}
  .ds-grid.no-detail .ds-panel{width:100%!important}
  .ds-grid.no-detail .ds-table-wrap{max-height:610px!important}

  .ds-quick-scan{
    position:fixed!important;right:26px!important;bottom:26px!important;z-index:55!important;
    width:64px!important;height:64px!important;border-radius:50%!important;border:0!important;
    display:grid!important;place-items:center!important;background:linear-gradient(145deg,#ff8a14,#ff6f00)!important;
    color:#fff!important;box-shadow:0 10px 28px rgba(255,111,0,.34)!important;cursor:pointer!important
  }
  .ds-quick-scan:hover{transform:translateY(-2px)!important;box-shadow:0 14px 34px rgba(255,111,0,.40)!important}
  .ds-quick-scan svg{width:31px!important;height:31px!important}

  .desktop-settings-intro,.desktop-settings-note{
    border:1px solid #dce5ed!important;border-radius:8px!important;background:#f8fafc!important;
    padding:13px 14px!important;margin-bottom:12px!important;color:#17395c!important
  }
  .desktop-settings-intro p,.desktop-settings-note p{margin:4px 0 0!important;color:#6b8195!important;font-size:12px!important}
  .desktop-ribbon-settings{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
  .desktop-ribbon-settings label{
    min-height:48px!important;display:flex!important;align-items:center!important;gap:10px!important;
    border:1px solid #dce5ed!important;border-radius:7px!important;background:#fff!important;padding:8px 11px!important;
    color:#17395c!important;font-weight:700!important;cursor:pointer!important
  }
  .desktop-ribbon-settings input{width:18px!important;height:18px!important;min-height:0!important;accent-color:#ff7900!important}
  .desktop-settings-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin-top:14px!important}

  .quick-scan-choice{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin-top:12px!important}
  .quick-scan-choice button{
    min-height:112px!important;border:1px solid #d7e2eb!important;border-radius:8px!important;background:#fff!important;
    color:#17395c!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important
  }
  .quick-scan-choice button:hover{border-color:#ffae63!important;background:#fffaf5!important}
  .quick-scan-choice button>span{font-size:30px!important;color:#ff7900!important}.quick-scan-choice button>strong{font-size:16px!important}.quick-scan-choice button>small{color:#6f8497!important}
  .quick-camera-status{margin-bottom:10px!important;color:#60788d!important;text-align:center!important}
  .quick-scan-camera{min-height:360px!important;border:1px solid #d8e2ec!important;border-radius:9px!important;background:#071c2c!important;overflow:hidden!important}
  .quick-scan-camera video{width:100%!important;max-height:440px!important;object-fit:cover!important;display:block!important}
}
@media (max-width:999px){
  .ds-quick-scan{display:none!important}
}


/* =========================================================
   Build 0033 Rev9 – Anmeldebereich im neuen Desktop-Layout
   ========================================================= */
@media (min-width:1000px){
  body:has(#loginScreen:not([hidden])){
    background:#eef3f8!important;
    color:#17395c!important;
  }
  body:has(#loginScreen:not([hidden])):before{display:none!important}

  .login-redesign{
    min-height:100vh!important;
    display:grid!important;
    place-content:stretch!important;
    padding:0!important;
    background:#eef3f8!important;
  }
  .login-shell{
    min-height:100vh!important;
    display:grid!important;
    grid-template-columns:minmax(430px,46%) minmax(520px,54%)!important;
  }

  .login-hero{
    position:relative!important;
    overflow:hidden!important;
    min-height:100vh!important;
    display:flex!important;
    flex-direction:column!important;
    padding:38px 46px 32px!important;
    background:
      radial-gradient(circle at 85% 15%,rgba(255,121,0,.17),transparent 28%),
      linear-gradient(145deg,#052a4b 0%,#073b65 56%,#0a4778 100%)!important;
    color:#fff!important;
  }
  .login-hero:after{
    content:""!important;
    position:absolute!important;
    width:440px!important;height:440px!important;
    right:-180px!important;bottom:-210px!important;
    border:70px solid rgba(255,255,255,.035)!important;
    transform:rotate(24deg)!important;
  }
  .login-hero-brand{
    position:relative!important;z-index:1!important;
    display:flex!important;align-items:center!important;gap:13px!important;
  }
  .login-hero-brand img{width:58px!important;height:58px!important;object-fit:contain!important}
  .login-hero-brand strong{display:block!important;font-size:22px!important;letter-spacing:-.02em!important}
  .login-hero-brand span{display:block!important;color:#ff7900!important;font-size:18px!important;font-weight:850!important;margin-top:1px!important}

  .login-hero-copy{
    position:relative!important;z-index:1!important;
    margin:auto 0!important;
    max-width:620px!important;
  }
  .login-eyebrow{
    display:inline-block!important;
    padding:6px 10px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:999px!important;
    color:#d9e8f5!important;
    font-size:11px!important;font-weight:800!important;
    text-transform:uppercase!important;letter-spacing:.09em!important;
  }
  .login-hero-copy h1{
    margin:20px 0 13px!important;
    color:#fff!important;
    font-size:clamp(36px,4vw,58px)!important;
    line-height:1.03!important;
    letter-spacing:-.04em!important;
  }
  .login-hero-copy h1 em{font-style:normal!important;color:#ff8a14!important}
  .login-hero-copy>p{
    max-width:520px!important;
    margin:0!important;
    color:#c8d9e8!important;
    font-size:15px!important;
    line-height:1.55!important;
  }
  .login-feature-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin-top:28px!important;
    max-width:560px!important;
  }
  .login-feature-grid>div{
    display:flex!important;align-items:center!important;gap:11px!important;
    min-height:70px!important;padding:11px 13px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.055)!important;
  }
  .login-feature-grid>div>b{
    width:38px!important;height:38px!important;border-radius:7px!important;
    display:grid!important;place-items:center!important;
    background:rgba(255,121,0,.15)!important;color:#ff941f!important;
    font-size:20px!important;
  }
  .login-feature-grid strong,.login-feature-grid small{display:block!important}
  .login-feature-grid strong{font-size:13px!important;color:#fff!important}
  .login-feature-grid small{font-size:11px!important;color:#aec5d8!important;margin-top:2px!important}
  .login-hero-footer{
    position:relative!important;z-index:1!important;
    display:flex!important;align-items:center!important;gap:8px!important;
    color:#9eb9ce!important;font-size:11px!important;
  }
  .login-hero-footer i{width:8px!important;height:8px!important;border-radius:50%!important;background:#1bc56b!important}

  .login-panel{
    min-height:100vh!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    padding:48px!important;
    background:#f4f7fa!important;
    color:#17395c!important;
  }
  .login-mobile-brand{display:none!important}
  .login-card{
    width:min(440px,100%)!important;
    border:1px solid #d8e2ec!important;
    border-radius:10px!important;
    padding:34px!important;
    background:#fff!important;
    color:#17395c!important;
    box-shadow:0 14px 40px rgba(14,48,78,.10)!important;
  }
  .login-card-head{margin-bottom:24px!important}
  .login-welcome{
    display:block!important;
    color:#ff7900!important;
    font-size:11px!important;font-weight:850!important;
    text-transform:uppercase!important;letter-spacing:.08em!important;
    margin-bottom:5px!important;
  }
  .login-card h2{margin:0!important;font-size:28px!important;color:#0d2b4b!important;letter-spacing:-.02em!important}
  .login-card-head p{margin:7px 0 0!important;color:#6b8195!important;font-size:13px!important;line-height:1.45!important}

  .login-field{display:block!important;margin:14px 0 0!important}
  .login-field>span{display:block!important;margin-bottom:6px!important;color:#3e607e!important;font-size:12px!important;font-weight:800!important}
  .login-input-wrap{
    height:46px!important;
    display:flex!important;align-items:center!important;
    border:1px solid #cedae5!important;border-radius:7px!important;
    background:#fff!important;overflow:hidden!important;
    transition:border-color .15s,box-shadow .15s!important;
  }
  .login-input-wrap:focus-within{
    border-color:#ff8a14!important;
    box-shadow:0 0 0 3px rgba(255,121,0,.12)!important;
  }
  .login-input-wrap>b{
    width:43px!important;flex:0 0 43px!important;
    display:grid!important;place-items:center!important;
    color:#ff7900!important;font-size:16px!important;font-weight:500!important;
    border-right:1px solid #e6edf3!important;
  }
  .login-input-wrap input{
    height:44px!important;
    border:0!important;border-radius:0!important;
    padding:0 12px!important;
    background:#fff!important;color:#17395c!important;
    box-shadow:none!important;outline:0!important;
  }
  .login-input-wrap input::placeholder{color:#9aabba!important}
  .login-submit{
    width:100%!important;height:47px!important;
    margin-top:22px!important;
    border:0!important;border-radius:7px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
    background:linear-gradient(90deg,#ff850e,#ff6f00)!important;
    color:#fff!important;font-weight:850!important;
    box-shadow:0 7px 18px rgba(255,121,0,.20)!important;
  }
  .login-submit:hover{filter:brightness(1.03)!important;transform:translateY(-1px)!important}
  .login-submit>b{font-size:19px!important;font-weight:500!important}
  .login-error{margin-top:10px!important;min-height:18px!important;font-size:12px!important}
  .login-help{
    border-top:1px solid #e8eef4!important;
    margin-top:8px!important;padding-top:13px!important;
    text-align:center!important;
    color:#8497a8!important;font-size:10px!important;line-height:1.4!important;
  }
  .login-panel-footer{
    margin-top:18px!important;
    color:#8b9ead!important;
    font-size:10px!important;
  }
}

@media (max-width:999px){
  .login-redesign{padding:24px!important}
  .login-shell{display:block!important;min-height:auto!important}
  .login-hero{display:none!important}
  .login-panel{display:block!important;background:transparent!important;padding:0!important;min-height:auto!important}
  .login-mobile-brand{
    display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important;
    color:#fff!important;margin:4vh auto 20px!important;
  }
  .login-mobile-brand img{width:72px!important;height:72px!important;object-fit:contain!important}
  .login-mobile-brand b,.login-mobile-brand em{display:block!important}
  .login-mobile-brand b{font-size:21px!important}
  .login-mobile-brand em{font-size:16px!important;color:#ff8a14!important;font-style:normal!important;font-weight:800!important}
  .login-card{width:min(430px,92vw)!important;margin:auto!important}
  .login-card h2{font-size:27px!important;margin:0!important}
  .login-welcome{color:#ff7900!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase!important}
  .login-input-wrap{display:flex!important;align-items:center!important;border:1px solid #dfe7f0!important;border-radius:10px!important;overflow:hidden!important}
  .login-input-wrap>b{width:42px!important;text-align:center!important;color:#ff7900!important}
  .login-input-wrap input{border:0!important;border-radius:0!important}
  .login-submit{width:100%!important;margin-top:20px!important;background:#ff7900!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:13px!important;font-weight:800!important}
  .login-help,.login-panel-footer{font-size:10px!important;text-align:center!important;color:#8194a7!important;margin-top:12px!important}
}


/* Build 0033 Rev10 – Login und Lager-App als strikt getrennte Ansichten */
body.auth-page #appShell,
body.auth-page #desktopShell,
body.auth-page #mobileShell,
body.auth-page #desktopQuickScan,
body.auth-page .bottom-nav,
body.auth-page .fab,
body.auth-page .desktop-shell{
  display:none!important;
}
body.auth-page #loginScreen{
  display:grid!important;
  position:fixed!important;
  inset:0!important;
  z-index:1000!important;
  overflow:auto!important;
}
body.app-page #loginScreen{
  display:none!important;
}
body.app-page #appShell,
body.app-page #desktopShell{
  visibility:visible!important;
}
body.auth-page{
  overflow:auto!important;
}
body.app-page{
  overflow:auto!important;
}

@media (min-width:1000px){
 .ds-inline-search{display:flex!important;align-items:center!important;gap:7px!important;min-width:250px!important;background:#fff!important;border:1px solid #d7e1ea!important;border-radius:6px!important;padding:0 10px!important;color:#678097!important}
 .ds-inline-search:focus-within{border-color:#ff8a14!important;box-shadow:0 0 0 3px rgba(255,121,0,.10)!important}
 .ds-inline-search input{width:100%!important;min-height:34px!important;border:0!important;outline:0!important;background:transparent!important;color:#17395c!important;padding:0!important;box-shadow:none!important}
}
/* Build 0033 Rev14 – sichtbare, direkt bedienbare Artikelsuche */
@media (min-width:1000px){
  .target-search-inline{
    width:min(360px,34vw)!important;
    min-width:230px!important;
    height:36px!important;
    margin-left:auto!important;
  }
  .desktop-inline-search-input{
    cursor:text!important;
    font:inherit!important;
  }
  .desktop-inline-search-input::placeholder{color:#7d91a4!important}
}

/* Build 0033 Rev15 – robuste native Desktop-Artikelsuche */
@media (min-width:1000px){
 .ds-search-native{
   display:flex!important;align-items:center!important;gap:8px!important;
   min-width:280px!important;height:38px!important;padding:0 11px!important;
   background:#fff!important;border:1px solid #d4dee8!important;border-radius:6px!important;
 }
 .ds-search-native:focus-within{border-color:#ff7900!important;box-shadow:0 0 0 3px rgba(255,121,0,.12)!important}
 .ds-search-native>span{color:#607b94!important;font-size:17px!important}
 #desktopArticleSearch{
   display:block!important;flex:1!important;width:100%!important;height:34px!important;
   border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;
   color:#17395c!important;padding:0!important;font-size:13px!important;cursor:text!important;
   pointer-events:auto!important;
 }
}
@media (min-width:1000px){
 .ds-top-search{display:flex!important;align-items:center!important;gap:9px!important;cursor:text!important;pointer-events:auto!important}
 .ds-top-search #desktopTopSearch{display:block!important;flex:1 1 auto!important;min-width:0!important;height:34px!important;padding:0!important;margin:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#17395c!important;font:inherit!important;font-size:14px!important;cursor:text!important;pointer-events:auto!important}
 .ds-top-search #desktopTopSearch::placeholder{color:#71869a!important;opacity:1!important}
 .ds-top-search:focus-within{border-color:#ff7900!important;box-shadow:0 0 0 3px rgba(255,121,0,.16)!important}
 .ds-top-search kbd{pointer-events:none!important}
}
/* Build 0033 Rev18 – sichtbare Live-Treffer unter der Kopfzeilen-Suche */
@media (min-width:1000px){
 .ds-top-search{position:relative!important}
 .ds-top-search-results{
   position:absolute!important;top:calc(100% + 8px)!important;left:0!important;right:0!important;
   z-index:10000!important;background:#fff!important;border:1px solid #d9e2ea!important;
   border-radius:10px!important;box-shadow:0 14px 38px rgba(15,43,68,.22)!important;
   overflow:hidden!important;max-height:430px!important;overflow-y:auto!important;
 }
 .ds-top-search-results[hidden]{display:none!important}
 .ds-top-result{
   width:100%!important;display:grid!important;grid-template-columns:34px 1fr auto!important;
   align-items:center!important;gap:10px!important;padding:11px 13px!important;
   border:0!important;border-bottom:1px solid #edf1f5!important;background:#fff!important;
   text-align:left!important;cursor:pointer!important;color:#17395c!important;
 }
 .ds-top-result:hover{background:#fff7ef!important}
 .ds-top-result-icon{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:7px!important;background:#fff0e2!important;color:#f47b20!important}
 .ds-top-result-copy{display:flex!important;flex-direction:column!important;min-width:0!important}
 .ds-top-result-copy strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .ds-top-result-copy small{font-size:11px!important;color:#71869a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .ds-top-result-stock{font-size:12px!important;font-weight:800!important;color:#17395c!important;white-space:nowrap!important}
 .ds-top-result-empty{padding:16px!important;display:flex!important;flex-direction:column!important;gap:3px!important}
 .ds-top-result-empty strong{color:#17395c!important}.ds-top-result-empty small{color:#71869a!important}
}
/* =========================================================
   Build 0034 - Mobile Warehouse UI
   ========================================================= */

@media (max-width:999px){

  html,body{
    background:#eef3f8!important;
    color:#17395c!important;
  }

  body.app-page:before{
    display:none!important;
  }

  #appShell{
    background:#eef3f8!important;
    min-height:100vh!important;
  }

  #mainView.main-view{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:14px 14px calc(94px + env(safe-area-inset-bottom))!important;
    background:#eef3f8!important;
    color:#17395c!important;
    box-sizing:border-box!important;
  }

  .target-page,
  .settings-page,
  .scanner-page,
  .article-page{
    background:#f7f9fc!important;
    color:#17395c!important;
    min-height:calc(100vh - 100px)!important;
  }

  .target-topbar{
    min-height:64px!important;
    margin:-14px -14px 14px!important;
    padding:0 15px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    align-items:center!important;
    background:linear-gradient(100deg,#052a4b,#0a4778)!important;
    color:#fff!important;
    border:0!important;
    box-shadow:0 3px 12px rgba(5,42,75,.18)!important;
  }

  .target-topbar h1{
    margin:0!important;
    color:#fff!important;
    font-size:20px!important;
    line-height:1.15!important;
  }

  .target-topbar small{
    color:#c9d9e6!important;
  }

  .target-topbar button{
    width:38px!important;
    height:38px!important;
    border:0!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.10)!important;
    color:#fff!important;
  }

  .target-content{
    padding:0!important;
    background:transparent!important;
  }

  .welcome-card,
  .dashboard-welcome{
    border:0!important;
    border-radius:14px!important;
    background:linear-gradient(115deg,#052a4b,#0a4778)!important;
    color:#fff!important;
    box-shadow:0 5px 18px rgba(5,42,75,.18)!important;
  }

  .welcome-card h1,
  .dashboard-welcome h1{
    color:#fff!important;
  }

  .welcome-card p,
  .dashboard-welcome p{
    color:#d3e0ea!important;
  }

  .stats-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    margin:12px 0 18px!important;
  }

  .stat-card{
    min-height:92px!important;
    border:1px solid #d8e2ec!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#17395c!important;
    box-shadow:0 2px 8px rgba(16,50,82,.07)!important;
    padding:13px!important;
    text-align:left!important;
  }

  .stat-card strong{
    display:block!important;
    font-size:26px!important;
    line-height:1!important;
    color:#0d3e68!important;
  }

  .stat-card small{
    display:block!important;
    margin-top:7px!important;
    color:#6d8397!important;
    font-size:11px!important;
    font-weight:700!important;
  }

  .stat-orange{
    border-top:3px solid #ff7900!important;
  }

  .stat-green{
    border-top:3px solid #18a264!important;
  }

  .stat-blue{
    border-top:3px solid #1976bd!important;
  }

  .stat-red{
    border-top:3px solid #d9534f!important;
  }

  .dashboard-section-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    margin:18px 2px 9px!important;
  }

  .dashboard-section-head h2{
    margin:0!important;
    color:#17395c!important;
    font-size:17px!important;
  }

  .quick-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }

  .quick-card{
    min-height:96px!important;
    border:1px solid #d8e2ec!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#17395c!important;
    box-shadow:0 2px 7px rgba(16,50,82,.06)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    padding:11px!important;
  }

  .quick-card span{
    color:#ff7900!important;
    font-size:28px!important;
    line-height:1!important;
  }

  .quick-card strong{
    color:#17395c!important;
    font-size:12px!important;
    text-align:center!important;
  }

  .warehouse-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }

  .warehouse-card{
    width:100%!important;
    min-height:76px!important;
    display:grid!important;
    grid-template-columns:50px minmax(0,1fr) 22px!important;
    align-items:center!important;
    gap:11px!important;
    padding:11px 12px!important;
    border:1px solid #d8e2ec!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#17395c!important;
    box-shadow:0 2px 7px rgba(16,50,82,.06)!important;
    text-align:left!important;
  }

  .warehouse-icon{
    width:44px!important;
    height:44px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:9px!important;
    background:#eef4f9!important;
    color:#0a4778!important;
    font-size:22px!important;
  }

  .warehouse-card strong{
    display:block!important;
    color:#17395c!important;
    font-size:14px!important;
  }

  .warehouse-card small{
    display:block!important;
    color:#71869a!important;
    margin-top:3px!important;
    font-size:11px!important;
  }

  .warehouse-card em{
    display:block!important;
    color:#d76600!important;
    font-style:normal!important;
    font-size:10px!important;
    margin-top:3px!important;
  }

  .warehouse-card .chevron{
    color:#8ca1b4!important;
    font-size:24px!important;
  }

  .empty-modern{
    padding:28px 18px!important;
    border:1px solid #d8e2ec!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#17395c!important;
    text-align:center!important;
    box-shadow:0 2px 7px rgba(16,50,82,.06)!important;
  }

  .empty-modern strong{
    color:#17395c!important;
  }

  .empty-modern p{
    color:#71869a!important;
  }

  .empty-modern .btn-primary,
  .btn-primary{
    background:#ff7900!important;
    border-color:#ff7900!important;
    color:#fff!important;
  }

  .warehouse-search input,
  .article-search-row input{
    width:100%!important;
    min-height:44px!important;
    box-sizing:border-box!important;
    border:1px solid #d4e0eb!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#17395c!important;
    padding:0 13px!important;
  }

  .floating-add{
    position:fixed!important;
    right:18px!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    width:52px!important;
    height:52px!important;
    border:0!important;
    border-radius:50%!important;
    background:#ff7900!important;
    color:#fff!important;
    box-shadow:0 6px 18px rgba(255,121,0,.32)!important;
    z-index:40!important;
  }

  .bottom-nav{
    background:#052a4b!important;
    border-top:1px solid #174d76!important;
    box-shadow:0 -4px 16px rgba(4,29,50,.18)!important;
  }

  .bottom-nav button{
    color:#b9cad8!important;
  }

  .bottom-nav button.active{
    color:#ff8a14!important;
  }

  .bottom-nav .nav-icon{
    color:inherit!important;
  }
}

@media (max-width:390px){
  .stats-grid,
  .quick-grid{
    grid-template-columns:1fr 1fr!important;
  }

  #mainView.main-view{
    padding-left:11px!important;
    padding-right:11px!important;
  }
}
