/* Melhorias Claude 85 · barra Empresarial | Pessoal sempre no centro */
/* Celular: a barra fica no meio do espaço entre a sua inicial e o Sair (antes ficava no meio do topo e encostava no Sair) */
@media (max-width:760px){
  html body #ownerPortal:not(#_):not(#_) .topbar{justify-content:space-between!important}
  html body #ownerPortal:not(#_):not(#_) .topbar-actions{display:contents!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .profile-chip{order:0!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope{order:1!important;position:relative!important;left:auto!important;top:auto!important;transform:none!important;flex:1 1 0!important;min-width:0!important;max-width:max-content!important;margin:0!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope button{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body #ownerPortal:not(#_):not(#_) .topbar #ownerExit{order:2!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .page-title{order:3!important}
}
@media (max-width:430px){
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope button{padding:7px 10px!important}
}
@media (max-width:380px){
  html body #ownerPortal:not(#_):not(#_) .topbar{column-gap:6px!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope button{padding:7px 8px!important;font-size:12px!important}
}
/* v204: em 320 px, manter os dois nomes inteiros dentro da barra. */
@media (max-width:340px){
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope button{padding:7px 1px!important;font-size:11px!important}
}
/* Tablet e janela média: título à esquerda, barra no centro e botões à direita, numa linha só (antes a barra caía em cima do título e do Sair) */
@media (min-width:761px) and (max-width:999px){
  html body #ownerPortal:not(#_):not(#_) .topbar{grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .page-title{grid-column:2!important;grid-row:1!important;min-width:0!important;max-width:calc(50vw - 222px)!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .page-title h1{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body #ownerPortal:not(#_):not(#_) .topbar-actions{grid-column:3!important;grid-row:1!important;width:auto!important;justify-content:flex-end!important;gap:8px!important}
  html body #ownerPortal:not(#_):not(#_) .topbar .finance-scope{top:50%!important}
}
