/* Mobile only: keep the existing read-only return action reachable in long order details. */
@media(max-width:700px),(max-width:1100px) and (pointer:coarse){
  /* Legacy SIMEC containers clip overflow; let the main scroller anchor the sticky return. */
  #orders.dpma-orders-page:has(.dpma-orders-detail:not([hidden])),
  #orders.dpma-orders-page .order-groups:has(.dpma-orders-detail:not([hidden])),
  #orders.dpma-orders-page .order-area-section:has(.dpma-orders-detail:not([hidden])){
    overflow:visible;
  }
  .dpma-orders-page .dpma-orders-detail>button{
    position:sticky;
    top:0;
    z-index:20;
    display:block;
    width:100%;
    margin:0 0 8px;
    min-height:48px;
    background:#20463a;
    color:#e2ebe7;
    border:1px solid #78d4b6;
    box-shadow:0 4px 8px rgba(0,0,0,.25);
    font-weight:700;
  }
}
