/* ============================================================
   BOX BOY WEB V5.8.9 — PEDIDOS: HOTFIX TOPO DA FILA EM 1 LINHA
   Base: V5.8.8
   - mantém largura da fila/mapa exatamente como V5.8.8;
   - busca + seleção + Ações ficam sempre na mesma linha;
   - neutraliza flex-wrap e width:100% herdados do layout legado;
   - seletor vira botão amarelo compacto com pin + contador;
   - Empresas/Situações permanecem intactos abaixo da linha.
   ============================================================ */

/* Linha superior da fila: NUNCA quebrar no desktop/tablet em que a fila lateral existe. */
body.orders-ui-v589 #ordersPanelPage .orders-search-row-v588{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  min-width:0!important;
  width:100%!important;
  padding:10px 10px 6px!important;
  box-sizing:border-box!important;
}

body.orders-ui-v589 #ordersPanelPage .orders-search-row-v588>.orders-search-box{
  flex:1 1 0!important;
  min-width:0!important;
  width:0!important;
  max-width:none!important;
  height:34px!important;
  margin:0!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-search-row-v588>.orders-search-box input{
  min-width:0!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}

/* Neutraliza regras antigas de .orders-bulk-bar e .orders-footer-selection-v5613. */
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589,
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589:not(.hidden){
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  margin:0!important;
  margin-left:0!important;
  padding:0!important;
  border:0!important;
  border-right:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589.hidden{
  display:none!important;
}

/* operation-v516 aplica width:100% em .orders-bulk-bar>div. Este é o conflito real da V5.8.8. */
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589>.orders-bulk-menu-v540{
  position:relative!important;
  display:flex!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:34px!important;
  margin:0!important;
  margin-left:0!important;
  padding:0!important;
  justify-content:flex-start!important;
  align-items:center!important;
}

/* Seletor visual da referência: amarelo, pin e quantidade. O checkbox continua funcional, só fica visualmente oculto. */
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589{
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:45px!important;
  width:auto!important;
  height:34px!important;
  min-height:34px!important;
  padding:0 8px!important;
  margin:0!important;
  border:1px solid #f0a11e!important;
  border-radius:7px!important;
  background:#ffb126!important;
  color:#111820!important;
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589:hover{
  background:#ffbb3d!important;
  border-color:#ffbb3d!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589>input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  margin:-1px!important;
  padding:0!important;
  opacity:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
  clip:rect(0,0,0,0)!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-select-pin-v589{
  display:block!important;
  flex:0 0 14px!important;
  width:14px!important;
  height:14px!important;
  color:#111820!important;
}
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589 #ordersSelectedCount{
  display:inline!important;
  min-width:0!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#111820!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
}

body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-menu-toggle-v540{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:58px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0 9px!important;
  border-radius:7px!important;
  white-space:nowrap!important;
}

/* Dropdown abre abaixo do botão, já que agora o controle fica no topo da fila. */
body.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-dropdown-v540{
  top:calc(100% + 6px)!important;
  right:0!important;
  left:auto!important;
  bottom:auto!important;
  margin:0!important;
}

/* Empresas/Situações continuam em sua própria linha, sem nenhuma mudança funcional. */
body.orders-ui-v589 #ordersPanelPage .orders-list-tabs{
  clear:both!important;
}

/* Tema claro: seletor continua amarelo para preservar a hierarquia visual. */
body.boxboy-theme-light.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589{
  background:#ffb126!important;
  border-color:#e99a19!important;
  color:#12181d!important;
}
body.boxboy-theme-light.orders-ui-v589 #ordersPanelPage .orders-select-pin-v589,
body.boxboy-theme-light.orders-ui-v589 #ordersPanelPage .orders-head-actions-v589 .orders-bulk-select-v589 #ordersSelectedCount{
  color:#12181d!important;
}

/* Não há regra de width/grid da fila/mapa neste arquivo por contrato da V5.8.9. */
