/* Grupo com o mesmo layout da conversa comum (pedido do Nelson, 28/10/2026, lote 30): cabeçalho, uma linha compacta de ações,
   a conversa ocupando a altura livre com rolagem própria e o campo de envio compacto embaixo, como num contato. */
#at-detalhe.at-grupo-layout{display:flex;flex-direction:column;gap:6px;overflow:hidden!important}
#at-detalhe.at-grupo-layout>*{flex:0 0 auto;margin-top:0;margin-bottom:0}
#at-detalhe.at-grupo-layout>small,#at-detalhe.at-grupo-layout>.at-conexao{font-size:0.75rem;line-height:1.3}
#at-detalhe.at-grupo-layout>.at-conversa{flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:120px!important;overflow-y:auto!important}

/* Ações do grupo numa linha só, do tamanho dos comandos da conversa comum. */
#at-detalhe.at-grupo-layout .at-grupo-comandos{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;align-items:center;gap:6px}
#at-detalhe.at-grupo-layout .at-grupo-comandos>button{white-space:nowrap!important;width:auto!important;max-width:none!important;flex:0 0 auto!important;min-height:30px;padding:4px 10px!important;margin:0!important;font-size:0.8125rem!important;line-height:20px}
#at-detalhe.at-grupo-layout .at-grupo-comandos>details{flex:0 0 auto;margin:0;border:0;padding:0}
#at-detalhe.at-grupo-layout .at-grupo-comandos>details>summary{min-height:30px;box-sizing:border-box;padding:4px 10px;font-size:0.8125rem;line-height:20px;border:1px solid #cfd9e5;border-radius:8px;cursor:pointer}
#at-detalhe.at-grupo-layout .at-grupo-comandos>details[open]{flex-basis:100%;max-height:40vh;overflow:auto}

/* Situação do envio discreta, como na conversa comum. */
#at-detalhe.at-grupo-layout .at-conversa .at-recibo{font-size:0.75rem!important;font-weight:400!important;line-height:1.3}

/* Atualizar e Ver mensagens anteriores: botões pequenos, sem ocupar a largura toda. */
#at-detalhe.at-grupo-layout>button.secundario{align-self:flex-end;width:auto!important;min-height:28px;padding:3px 10px!important;margin:0!important;font-size:0.78125rem!important}

/* Campo de envio compacto: texto de duas linhas e ferramentas numa linha, com Enviar à direita. */
#at-detalhe.at-grupo-layout form.at-grupo-compositor{display:flex;flex-direction:column;gap:6px;padding:8px 10px;margin:0}
#at-detalhe.at-grupo-layout form.at-grupo-compositor>small{font-size:0.75rem;line-height:1.3}
#at-detalhe.at-grupo-layout form.at-grupo-compositor textarea{min-height:40px;height:48px;max-height:160px;resize:vertical;font-size:0.875rem;line-height:1.4}
#at-detalhe.at-grupo-layout .at-grupo-envio-acoes{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#at-detalhe.at-grupo-layout .at-grupo-envio-acoes>button,#at-detalhe.at-grupo-layout .at-grupo-envio-acoes>input[type=datetime-local]{min-height:32px;height:32px;box-sizing:border-box;padding:4px 10px!important;margin:0!important;font-size:0.8125rem!important}
#at-detalhe.at-grupo-layout .at-grupo-envio-acoes>button[type=submit]{margin-left:auto!important}
