/* ND173 — Proposta comercial: linha única definitiva, fluida e sem overflow. */
.proposal-items-box{
  container-type:inline-size!important;
  container-name:proposalItems!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:hidden!important;
}
.proposal-items-box .nb-proposal-items{width:100%!important;max-width:100%!important;min-width:0!important}
body.nf-redesign .proposal-items-box .nb-proposal-item.proposal-row-v29,
.proposal-items-box .nb-proposal-item.proposal-row-v29{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1.65fr) minmax(0,.52fr) minmax(0,.78fr) minmax(0,.72fr) 42px!important;
  grid-template-areas:"product description qty price discount remove"!important;
  grid-auto-flow:column!important;
  grid-auto-rows:auto!important;
  gap:clamp(5px,.7vw,11px)!important;
  align-items:end!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:clamp(9px,1vw,13px)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.proposal-items-box .proposal-row-v29>label:nth-of-type(1){grid-area:product!important;grid-column:auto!important;grid-row:1!important}
.proposal-items-box .proposal-row-v29>label:nth-of-type(2){grid-area:description!important;grid-column:auto!important;grid-row:1!important}
.proposal-items-box .proposal-row-v29>label:nth-of-type(3){grid-area:qty!important;grid-column:auto!important;grid-row:1!important}
.proposal-items-box .proposal-row-v29>label:nth-of-type(4){grid-area:price!important;grid-column:auto!important;grid-row:1!important}
.proposal-items-box .proposal-row-v29>label:nth-of-type(5),
.proposal-items-box .proposal-row-v29>.proposal-item-discount{grid-area:discount!important;grid-column:auto!important;grid-row:1!important}
.proposal-items-box .proposal-row-v29>.proposal-remove{
  grid-area:remove!important;grid-column:auto!important;grid-row:1!important;
  align-self:end!important;justify-self:stretch!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;height:48px!important;
  padding:0!important;margin:0!important;
}
.proposal-items-box .proposal-row-v29>*{min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
.proposal-items-box .proposal-row-v29 label{width:100%!important;min-width:0!important}
.proposal-items-box .proposal-row-v29 label>span{
  display:block!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:clamp(.68rem,.75vw,.82rem)!important;
}
.proposal-items-box .proposal-row-v29 :is(input,select){
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;
}
.proposal-items-box .proposal-add-item{width:100%!important;max-width:100%!important;margin-top:10px!important}
/* Mantém UMA linha também em larguras menores. As colunas encolhem por fração, sem criar segunda linha. */
@container proposalItems (max-width:900px){
  body.nf-redesign .proposal-items-box .nb-proposal-item.proposal-row-v29,
  .proposal-items-box .nb-proposal-item.proposal-row-v29{
    grid-template-columns:minmax(0,1.28fr) minmax(0,1.48fr) minmax(0,.46fr) minmax(0,.70fr) minmax(0,.64fr) 38px!important;
    grid-template-areas:"product description qty price discount remove"!important;
    gap:5px!important;padding:9px!important
  }
  .proposal-items-box .proposal-row-v29 label>span{font-size:.66rem!important}
  .proposal-items-box .proposal-row-v29 :is(input,select){padding-left:7px!important;padding-right:7px!important;font-size:.78rem!important}
  .proposal-items-box .proposal-row-v29>.proposal-remove{width:38px!important;min-width:38px!important;max-width:38px!important}
}
@container proposalItems (max-width:560px){
  body.nf-redesign .proposal-items-box .nb-proposal-item.proposal-row-v29,
  .proposal-items-box .nb-proposal-item.proposal-row-v29{
    grid-template-columns:minmax(0,1.22fr) minmax(0,1.36fr) minmax(0,.42fr) minmax(0,.62fr) minmax(0,.58fr) 34px!important;
    grid-template-areas:"product description qty price discount remove"!important;
    gap:4px!important;padding:7px!important
  }
  .proposal-items-box .proposal-row-v29 label>span{font-size:.58rem!important}
  .proposal-items-box .proposal-row-v29 :is(input,select){min-height:40px!important;padding:5px 3px!important;font-size:.68rem!important}
  .proposal-items-box .proposal-row-v29>.proposal-remove{width:34px!important;min-width:34px!important;max-width:34px!important;height:40px!important}
}
