/* Contrato comum dos botões e grupos, inclusive filtros e diálogos. */
:root{--botao-altura:44px;--botoes-espaco:8px}
.botoes-grupo,.acoes-pessoas:not(:has(> :not(.botao))){display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:center;gap:var(--botoes-espaco);width:max-content;max-width:100%}
.botoes-grupo>.botao,.acoes-pessoas:not(:has(> :not(.botao)))>.botao{box-sizing:border-box;width:100%;min-width:0;height:var(--botao-altura);min-height:var(--botao-altura);margin:0;padding:4px 12px;white-space:normal;line-height:1.2}
.botoes-grupo>.botao[hidden],.acoes-pessoas>.botao[hidden]{display:none}
.botao[data-botao-icone]{gap:6px}
.botao[data-botao-icone]::before{content:"";display:block;flex:none;width:24px;height:24px;background:center/contain no-repeat}
.botao[data-botao-icone=whatsapp]::before{width:28px;height:28px;background-image:url('/imagens/whatsapp.png')}
.comercial-painel :is(.orc-acoes-linha,.ped-acoes-linha)>.botao[data-botao-icone]::before{flex:0 0 24px;width:24px;height:24px;margin:0}
:is(#painel-orcamentos,#painel-pedidos).comercial-painel .botao[data-botao-icone=whatsapp]::before{flex-basis:28px;width:28px;height:28px;background-image:url('/imagens/whatsapp.png')}
#painel-orcamentos.comercial-painel .botao[data-whatsapp-direto=true]{font-size:0;gap:0;justify-content:center;color:transparent}
.orc-whatsapp-status{grid-column:1/-1;flex-basis:100%;max-width:100%;margin:2px 0;color:#20382d;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.orc-whatsapp-status[hidden]{display:none}
.orc-whatsapp-status .orc-whatsapp-abrir{display:inline-block;margin-left:6px;color:#00648a;text-decoration:underline;font-weight:600}
.comercial-cabecalho-acoes:has(>.orc-whatsapp-status){flex-wrap:wrap;max-width:320px}
@media(max-width:760px){
 .botoes-grupo,.acoes-pessoas:not(:has(> :not(.botao))){width:100%;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
}
