/* V6.1.64: apenas celular. Acoes operacionais em duas faixas,
   sem scroll lateral nem corte dos botoes, preservando textos e funcoes. */
@media screen and (max-width:690px) {
  #buyoffGrid .bo8-slot .bo8-actions,
  #buyoffGrid .bo8-slot .bo8-actions:has(>button:nth-child(4)) {
    display:grid!important;
    grid-template-columns:minmax(49px,.65fr) minmax(0,1.23fr) minmax(0,1.14fr)!important;
    grid-auto-flow:row!important;
    grid-auto-rows:minmax(36px,auto)!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    justify-content:stretch!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
    margin:4px 0 0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    scrollbar-width:none!important;
  }
  #buyoffGrid .bo8-slot .bo8-actions > .v578-check-action {
    grid-column:1/-1!important;
    grid-row:auto!important;
    order:initial!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    padding:7px 8px!important;
    font-size:10px!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    box-sizing:border-box!important;
  }
  #buyoffGrid .bo8-slot .bo8-actions > button:not(.v578-check-action) {
    display:flex!important;
    flex:none!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:7px 3px!important;
    margin:0!important;
    font-size:clamp(8.5px,2.5vw,10px)!important;
    font-weight:800!important;
    line-height:1.12!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-align:center!important;
    border-radius:6px!important;
    box-sizing:border-box!important;
  }
  /* Quando nao existe editar, reservar espaco maior aos dois comandos. */
  #buyoffGrid .bo8-slot .bo8-actions:not(:has(.bo8-edit)) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #buyoffGrid .bo8-slot .bo8-actions:has(>button.bo8-edit):not(:has(>button.bo8-swap-btn)) {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
