/* PRIME 2 build 159 — cabeçalho administrativo compacto em todas as telas. */

/* Mais área útil no conteúdo principal. */
.p2-shell-sidebar-only>.p2-main{
  padding:12px clamp(16px,2vw,26px) 28px!important;
}

/* Cabeçalho principal da página: somente título + ações. */
#p2-outlet>section>.p2-section-head:first-child,
#p2-outlet>*:not(section)>.p2-section-head:first-child{
  min-height:44px!important;
  margin:0 0 10px!important;
  padding:0 0 8px!important;
  gap:12px!important;
  align-items:center!important;
}

/* Remove rótulo redundante como CADASTROS, FERRAMENTAS, SEGURANÇA etc. */
#p2-outlet>section>.p2-section-head:first-child .p2-kicker,
#p2-outlet>*:not(section)>.p2-section-head:first-child .p2-kicker{
  display:none!important;
}

/* Remove apenas a descrição do cabeçalho principal; textos internos continuam normais. */
#p2-outlet>section>.p2-section-head:first-child>div:first-child>p,
#p2-outlet>*:not(section)>.p2-section-head:first-child>div:first-child>p{
  display:none!important;
  margin:0!important;
}

/* Título mais compacto, mantendo destaque. */
#p2-outlet>section>.p2-section-head:first-child h1,
#p2-outlet>*:not(section)>.p2-section-head:first-child h1{
  margin:0!important;
  font-size:clamp(24px,2vw,29px)!important;
  line-height:1.08!important;
  letter-spacing:-.02em!important;
}

#p2-outlet>section>.p2-section-head:first-child .p2-row-actions,
#p2-outlet>*:not(section)>.p2-section-head:first-child .p2-row-actions{
  margin:0!important;
  align-self:center!important;
}

/* Autorizador WEB segue o mesmo padrão compacto. */
#p2-outlet>.aw-page>.aw-head:first-child{
  min-height:44px!important;
  margin:0 0 10px!important;
  padding:0 0 8px!important;
  align-items:center!important;
}
#p2-outlet>.aw-page>.aw-head:first-child .p2-kicker,
#p2-outlet>.aw-page>.aw-head:first-child>div:first-child>p{
  display:none!important;
}
#p2-outlet>.aw-page>.aw-head:first-child h1{
  margin:0!important;
  font-size:clamp(24px,2vw,29px)!important;
  line-height:1.08!important;
}

/* Evita grandes respiros antes do primeiro bloco de conteúdo. */
#p2-outlet>section>.p2-section-head:first-child+*,
#p2-outlet>*:not(section)>.p2-section-head:first-child+*{
  margin-top:0!important;
}

@media(max-width:980px){
  .p2-shell-sidebar-only>.p2-main{padding:10px 12px 22px!important}
  #p2-outlet>section>.p2-section-head:first-child,
  #p2-outlet>*:not(section)>.p2-section-head:first-child,
  #p2-outlet>.aw-page>.aw-head:first-child{min-height:40px!important;margin-bottom:8px!important;padding-bottom:6px!important}
}
