
@media(max-width:720px){
  /* Mantiene el popup como está, solo corrige selector y flujo */
  .supplier-qty-control,
  .supplier-product-qty,
  .qty-control{
    display:grid!important;
    grid-template-columns:28px 26px 28px!important;
    align-items:center!important;
    gap:3px!important;
    min-width:88px!important;
    width:88px!important;
    overflow:visible!important;
  }

  .supplier-qty-control button,
  .supplier-product-qty button,
  .qty-control button{
    width:28px!important;
    height:28px!important;
    min-height:28px!important;
    border-radius:10px!important;
    padding:0!important;
    font-size:15px!important;
    line-height:1!important;
  }

  .supplier-qty-control span,
  .supplier-product-qty span,
  .qty-control span{
    width:26px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;
    font-size:13px!important;
    font-weight:900!important;
  }

  /* En la pantalla de selección no se muestra carrito */
  .supplier-modal-cart,
  .supplier-cart-sticky,
  .supplier-cart-footer{
    display:none!important;
  }

  #supplierMobileReviewBtnWrap{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    z-index:5!important;
    width:100%!important;
    padding:0!important;
    margin:14px 0 12px!important;
    background:transparent!important;
    grid-column:1 / -1!important;
  }

  #supplierMobileReviewBtn{
    width:100%!important;
    min-height:48px!important;
    border:0!important;
    border-radius:16px!important;
    background:#f2b51d!important;
    color:#071120!important;
    font-size:15px!important;
    font-weight:900!important;
  }

  #supplierMobileReviewScreen{
    position:fixed;
    inset:0;
    z-index:100000;
    background:#050a16;
    color:white;
    display:none;
    flex-direction:column;
    padding:14px;
    overflow:auto;
  }

  #supplierMobileReviewScreen.open{
    display:flex;
  }

  .supplier-review-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .supplier-review-head h2{
    margin:0;
    font-size:22px;
    line-height:1.05;
  }

  .supplier-review-head p{
    margin:4px 0 0;
    opacity:.72;
    font-size:13px;
  }

  .supplier-review-head button{
    min-height:42px;
    padding:0 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:#172235;
    color:white;
    font-weight:800;
  }

  #supplierMobileReviewContent{
    flex:1;
    overflow:auto;
    padding:12px 0;
  }

  #supplierMobileReviewContent .supplier-modal-cart,
  #supplierMobileReviewContent .supplier-cart-sticky,
  #supplierMobileReviewContent .supplier-cart-footer{
    display:block!important;
    position:relative!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
  }

  #supplierMobileReviewContent button{
    pointer-events:none!important;
  }

  .supplier-review-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1.2fr;
    gap:8px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.12);
    padding-bottom:env(safe-area-inset-bottom);
  }

  .supplier-review-actions button{
    min-height:48px;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.14);
    background:#172235;
    color:white;
    font-weight:900;
    font-size:12px;
  }

  .supplier-review-actions button:last-child{
    background:#f2b51d;
    color:#071120;
    border:0;
  }
}


@media(max-width:720px){
  #supplierMobileReviewBtnWrap{
    display:block!important;
    width:100%!important;
    margin:18px 0 18px!important;
    order:999999!important;
  }
}


@media(max-width:720px){
  #supplierMobileReviewBtnWrap{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    margin:18px 0 18px!important;
    padding:0!important;
    background:transparent!important;
    z-index:5!important;
    grid-column:1 / -1!important;
  }
}


@media(max-width:720px){
  #supplierOrderModal > #supplierMobileReviewBtnWrap{
    display:none!important;
  }

  .supplier-order-sheet > #supplierMobileReviewBtnWrap{
    display:block!important;
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    margin:18px 0 18px!important;
    padding:0!important;
    background:transparent!important;
    z-index:5!important;
    grid-column:1 / -1!important;
  }
}


@media(max-width:720px){
  /* Pantalla revisar pedido: eliminar botones duplicados del carrito clonado */
  #supplierMobileReviewScreen #supplierMobileReviewContent .supplier-modal-cart button,
  #supplierMobileReviewScreen #supplierMobileReviewContent .supplier-cart-sticky button,
  #supplierMobileReviewScreen #supplierMobileReviewContent .supplier-cart-footer button,
  #supplierMobileReviewScreen #supplierMobileReviewContent .cart-actions,
  #supplierMobileReviewScreen #supplierMobileReviewContent .actions{
    display:none!important;
  }

  /* Separar mejor líneas/productos del carrito */
  #supplierMobileReviewScreen #supplierMobileReviewContent .cart-item,
  #supplierMobileReviewScreen #supplierMobileReviewContent .supplier-cart-item,
  #supplierMobileReviewScreen #supplierMobileReviewContent .cart-line,
  #supplierMobileReviewScreen #supplierMobileReviewContent li,
  #supplierMobileReviewScreen #supplierMobileReviewContent .item{
    display:block!important;
    margin:0 0 14px!important;
    padding:12px 0 14px!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    line-height:1.35!important;
  }

  #supplierMobileReviewScreen #supplierMobileReviewContent strong,
  #supplierMobileReviewScreen #supplierMobileReviewContent b{
    display:inline-block!important;
    margin-bottom:3px!important;
  }

  #supplierMobileReviewScreen #supplierMobileReviewContent{
    padding-bottom:18px!important;
  }

  #supplierMobileReviewScreen .supplier-review-actions{
    position:sticky!important;
    bottom:0!important;
    background:#050a16!important;
    padding-top:12px!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }
}


.login-logo img{width:300px!important;max-width:82vw!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important}
.side-brand{min-height:120px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:14px 10px!important;overflow:hidden!important}
.side-brand img{width:176px!important;max-width:176px!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important}
.side-brand small{display:none!important}





.login-brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;margin-bottom:20px!important}
.login-brand-logo-img,.login-logo img{width:260px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.brand-icon{display:none!important}
.brand-name,.brand-subtitle{display:none!important}
.side-brand img{width:190px!important;max-width:190px!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.side-brand small{display:none!important}


/* === FIX DEFINITIVO LOGO PRIMEREST 2026 === */
.login-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:0!important;
  margin:0 0 24px 0!important;
}
.login-brand-logo-img{
  width:250px!important;
  max-width:100%!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.brand-icon,.brand-name,.brand-subtitle{
  display:none!important;
}
.login-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.login-logo img{
  width:250px!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.side-brand{
  min-height:112px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px 10px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.side-brand img{
  width:180px!important;
  max-width:180px!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))!important;
}
.side-brand small{display:none!important}
@media(max-width:760px){
  .login-brand-logo-img,.login-logo img{width:220px!important}
  .side-brand img{width:155px!important}
}
