/*
 * MasterPlating V803 — PADRÃO ÚNICO DE CABEÇALHO DE CARTÃO (opção A aprovada)
 *
 * Mesma linguagem do cabeçalho da página (V768), em tamanho menor:
 *   barra laranja fina à esquerda · título 15px/700 azul-escuro, sem caixa alta ·
 *   subtítulo/informação 12px cinza · ações à direita · linha fina separando o conteúdo.
 * Substitui a faixa azul em caixa alta da Gestão Preventiva e os demais modelos de título de cartão.
 * Carregado depois das folhas das telas. Só aparência; para manter um cabeçalho fora do padrão,
 * use a classe "mpc-livre" nele.
 */
:root{--mpcc-laranja:var(--mp-orange,#ef7d1a);--mpcc-titulo:var(--mp-blue-950,#12315e);--mpcc-suave:#5b6576;--mpcc-linha:#edf1f5}

/* 1. Caixa do cabeçalho */
.fpa-card > header:not(.mpc-livre),
.dash-card-head:not(.mpc-livre),
.home-card-head:not(.mpc-livre),
.calind-card-head:not(.mpc-livre),
.fin-dash-card-head:not(.mpc-livre),
.ac93-card-head:not(.mpc-livre),
.fmea-card-head:not(.mpc-livre),
.card-head:not(.mpc-livre),
.gpx-panel-head:not(.mpc-livre),
.gp-rede-panel-head:not(.mpc-livre),
.gp-scope-panel-head:not(.mpc-livre),
.exec-head:not(.mpc-livre),
.cock-head:not(.mpc-livre),
.alrt-head:not(.mpc-livre){
  display:flex !important;align-items:center !important;justify-content:flex-start !important;flex-wrap:wrap;gap:4px 12px !important;
  padding:12px 16px !important;margin:0 !important;background:#fff !important;border:0 !important;border-bottom:1px solid var(--mpcc-linha) !important;
  border-radius:0 !important;box-shadow:none !important;color:var(--mpcc-titulo) !important;
  font:400 12px/1.35 Inter,Arial,sans-serif !important;text-transform:none !important;letter-spacing:0 !important;
}
/* barra laranja */
.fpa-card > header:not(.mpc-livre)::before,
.dash-card-head:not(.mpc-livre)::before,
.home-card-head:not(.mpc-livre)::before,
.calind-card-head:not(.mpc-livre)::before,
.fin-dash-card-head:not(.mpc-livre)::before,
.ac93-card-head:not(.mpc-livre)::before,
.fmea-card-head:not(.mpc-livre)::before,
.card-head:not(.mpc-livre)::before,
.gpx-panel-head:not(.mpc-livre)::before,
.gp-rede-panel-head:not(.mpc-livre)::before,
.gp-scope-panel-head:not(.mpc-livre)::before,
.exec-head:not(.mpc-livre)::before,
.cock-head:not(.mpc-livre)::before,
.alrt-head:not(.mpc-livre)::before{
  content:"" !important;display:block !important;flex:0 0 3px !important;align-self:stretch !important;min-height:20px !important;
  border-radius:2px !important;background:var(--mpcc-laranja) !important;margin:0 !important;
}
/* 2. Título */
.fpa-card > header:not(.mpc-livre) > h2,
.dash-card-head:not(.mpc-livre) > h2,
.home-card-head:not(.mpc-livre) > h2,
.calind-card-head:not(.mpc-livre) > h2,
.fin-dash-card-head:not(.mpc-livre) > h2,
.ac93-card-head:not(.mpc-livre) > h2,
.fmea-card-head:not(.mpc-livre) > h2,
.card-head:not(.mpc-livre) > h2,
.gpx-panel-head:not(.mpc-livre) > h2,
.gp-rede-panel-head:not(.mpc-livre) > h2,
.gp-scope-panel-head:not(.mpc-livre) > h2,
.exec-head:not(.mpc-livre) > h2,
.cock-head:not(.mpc-livre) > h2,
.alrt-head:not(.mpc-livre) > h2,
.fpa-card > header:not(.mpc-livre) > h3,
.dash-card-head:not(.mpc-livre) > h3,
.home-card-head:not(.mpc-livre) > h3,
.calind-card-head:not(.mpc-livre) > h3,
.fin-dash-card-head:not(.mpc-livre) > h3,
.ac93-card-head:not(.mpc-livre) > h3,
.fmea-card-head:not(.mpc-livre) > h3,
.card-head:not(.mpc-livre) > h3,
.gpx-panel-head:not(.mpc-livre) > h3,
.gp-rede-panel-head:not(.mpc-livre) > h3,
.gp-scope-panel-head:not(.mpc-livre) > h3,
.exec-head:not(.mpc-livre) > h3,
.cock-head:not(.mpc-livre) > h3,
.alrt-head:not(.mpc-livre) > h3,
.fpa-card > header:not(.mpc-livre) > h4,
.dash-card-head:not(.mpc-livre) > h4,
.home-card-head:not(.mpc-livre) > h4,
.calind-card-head:not(.mpc-livre) > h4,
.fin-dash-card-head:not(.mpc-livre) > h4,
.ac93-card-head:not(.mpc-livre) > h4,
.fmea-card-head:not(.mpc-livre) > h4,
.card-head:not(.mpc-livre) > h4,
.gpx-panel-head:not(.mpc-livre) > h4,
.gp-rede-panel-head:not(.mpc-livre) > h4,
.gp-scope-panel-head:not(.mpc-livre) > h4,
.exec-head:not(.mpc-livre) > h4,
.cock-head:not(.mpc-livre) > h4,
.alrt-head:not(.mpc-livre) > h4,
.fpa-card > header:not(.mpc-livre) > div > h2,
.dash-card-head:not(.mpc-livre) > div > h2,
.home-card-head:not(.mpc-livre) > div > h2,
.calind-card-head:not(.mpc-livre) > div > h2,
.fin-dash-card-head:not(.mpc-livre) > div > h2,
.ac93-card-head:not(.mpc-livre) > div > h2,
.fmea-card-head:not(.mpc-livre) > div > h2,
.card-head:not(.mpc-livre) > div > h2,
.gpx-panel-head:not(.mpc-livre) > div > h2,
.gp-rede-panel-head:not(.mpc-livre) > div > h2,
.gp-scope-panel-head:not(.mpc-livre) > div > h2,
.exec-head:not(.mpc-livre) > div > h2,
.cock-head:not(.mpc-livre) > div > h2,
.alrt-head:not(.mpc-livre) > div > h2,
.fpa-card > header:not(.mpc-livre) > div > h3,
.dash-card-head:not(.mpc-livre) > div > h3,
.home-card-head:not(.mpc-livre) > div > h3,
.calind-card-head:not(.mpc-livre) > div > h3,
.fin-dash-card-head:not(.mpc-livre) > div > h3,
.ac93-card-head:not(.mpc-livre) > div > h3,
.fmea-card-head:not(.mpc-livre) > div > h3,
.card-head:not(.mpc-livre) > div > h3,
.gpx-panel-head:not(.mpc-livre) > div > h3,
.gp-rede-panel-head:not(.mpc-livre) > div > h3,
.gp-scope-panel-head:not(.mpc-livre) > div > h3,
.exec-head:not(.mpc-livre) > div > h3,
.cock-head:not(.mpc-livre) > div > h3,
.alrt-head:not(.mpc-livre) > div > h3,
.fpa-card > header:not(.mpc-livre) > div > h4,
.dash-card-head:not(.mpc-livre) > div > h4,
.home-card-head:not(.mpc-livre) > div > h4,
.calind-card-head:not(.mpc-livre) > div > h4,
.fin-dash-card-head:not(.mpc-livre) > div > h4,
.ac93-card-head:not(.mpc-livre) > div > h4,
.fmea-card-head:not(.mpc-livre) > div > h4,
.card-head:not(.mpc-livre) > div > h4,
.gpx-panel-head:not(.mpc-livre) > div > h4,
.gp-rede-panel-head:not(.mpc-livre) > div > h4,
.gp-scope-panel-head:not(.mpc-livre) > div > h4,
.exec-head:not(.mpc-livre) > div > h4,
.cock-head:not(.mpc-livre) > div > h4,
.alrt-head:not(.mpc-livre) > div > h4,
.fpa-card > header:not(.mpc-livre) > span:first-of-type,
.dash-card-head:not(.mpc-livre) > span:first-of-type,
.home-card-head:not(.mpc-livre) > span:first-of-type,
.calind-card-head:not(.mpc-livre) > span:first-of-type,
.fin-dash-card-head:not(.mpc-livre) > span:first-of-type,
.ac93-card-head:not(.mpc-livre) > span:first-of-type,
.fmea-card-head:not(.mpc-livre) > span:first-of-type,
.card-head:not(.mpc-livre) > span:first-of-type,
.gpx-panel-head:not(.mpc-livre) > span:first-of-type,
.gp-rede-panel-head:not(.mpc-livre) > span:first-of-type,
.gp-scope-panel-head:not(.mpc-livre) > span:first-of-type,
.exec-head:not(.mpc-livre) > span:first-of-type,
.cock-head:not(.mpc-livre) > span:first-of-type,
.alrt-head:not(.mpc-livre) > span:first-of-type{
  margin:0 !important;padding:0 !important;font:700 15px/1.25 Inter,Arial,sans-serif !important;color:var(--mpcc-titulo) !important;
  text-transform:none !important;letter-spacing:0 !important;background:none !important;border:0 !important;
}
/* 3. Subtítulo e informação complementar */
.fpa-card > header:not(.mpc-livre) > div > p,
.dash-card-head:not(.mpc-livre) > div > p,
.home-card-head:not(.mpc-livre) > div > p,
.calind-card-head:not(.mpc-livre) > div > p,
.fin-dash-card-head:not(.mpc-livre) > div > p,
.ac93-card-head:not(.mpc-livre) > div > p,
.fmea-card-head:not(.mpc-livre) > div > p,
.card-head:not(.mpc-livre) > div > p,
.gpx-panel-head:not(.mpc-livre) > div > p,
.gp-rede-panel-head:not(.mpc-livre) > div > p,
.gp-scope-panel-head:not(.mpc-livre) > div > p,
.exec-head:not(.mpc-livre) > div > p,
.cock-head:not(.mpc-livre) > div > p,
.alrt-head:not(.mpc-livre) > div > p,
.fpa-card > header:not(.mpc-livre) > p,
.dash-card-head:not(.mpc-livre) > p,
.home-card-head:not(.mpc-livre) > p,
.calind-card-head:not(.mpc-livre) > p,
.fin-dash-card-head:not(.mpc-livre) > p,
.ac93-card-head:not(.mpc-livre) > p,
.fmea-card-head:not(.mpc-livre) > p,
.card-head:not(.mpc-livre) > p,
.gpx-panel-head:not(.mpc-livre) > p,
.gp-rede-panel-head:not(.mpc-livre) > p,
.gp-scope-panel-head:not(.mpc-livre) > p,
.exec-head:not(.mpc-livre) > p,
.cock-head:not(.mpc-livre) > p,
.alrt-head:not(.mpc-livre) > p,
.fpa-card > header:not(.mpc-livre) > small,
.dash-card-head:not(.mpc-livre) > small,
.home-card-head:not(.mpc-livre) > small,
.calind-card-head:not(.mpc-livre) > small,
.fin-dash-card-head:not(.mpc-livre) > small,
.ac93-card-head:not(.mpc-livre) > small,
.fmea-card-head:not(.mpc-livre) > small,
.card-head:not(.mpc-livre) > small,
.gpx-panel-head:not(.mpc-livre) > small,
.gp-rede-panel-head:not(.mpc-livre) > small,
.gp-scope-panel-head:not(.mpc-livre) > small,
.exec-head:not(.mpc-livre) > small,
.cock-head:not(.mpc-livre) > small,
.alrt-head:not(.mpc-livre) > small,
.fpa-card > header:not(.mpc-livre) > span:not(:first-of-type),
.dash-card-head:not(.mpc-livre) > span:not(:first-of-type),
.home-card-head:not(.mpc-livre) > span:not(:first-of-type),
.calind-card-head:not(.mpc-livre) > span:not(:first-of-type),
.fin-dash-card-head:not(.mpc-livre) > span:not(:first-of-type),
.ac93-card-head:not(.mpc-livre) > span:not(:first-of-type),
.fmea-card-head:not(.mpc-livre) > span:not(:first-of-type),
.card-head:not(.mpc-livre) > span:not(:first-of-type),
.gpx-panel-head:not(.mpc-livre) > span:not(:first-of-type),
.gp-rede-panel-head:not(.mpc-livre) > span:not(:first-of-type),
.gp-scope-panel-head:not(.mpc-livre) > span:not(:first-of-type),
.exec-head:not(.mpc-livre) > span:not(:first-of-type),
.cock-head:not(.mpc-livre) > span:not(:first-of-type),
.alrt-head:not(.mpc-livre) > span:not(:first-of-type){
  margin:2px 0 0 !important;font:400 12px/1.35 Inter,Arial,sans-serif !important;color:var(--mpcc-suave) !important;
  text-transform:none !important;letter-spacing:0 !important;
}
/* 4. O que vem depois do título (informação ou ações) fica à direita */
.fpa-card > header:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.dash-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.home-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.calind-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.fin-dash-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.ac93-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.fmea-card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.card-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.gpx-panel-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.gp-rede-panel-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.gp-scope-panel-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.exec-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.cock-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type),
.alrt-head:not(.mpc-livre) > :last-child:not(:first-child):not(h2):not(h3):not(h4):not(span:first-of-type){margin-left:auto !important}

/* 5. Cartões simples: <div class="card"><h3>Título</h3>… */
.card:not(.mpc-livre) > h3:first-child{
  display:flex !important;align-items:center !important;gap:10px !important;margin:0 0 12px !important;padding:0 0 10px !important;
  border-bottom:1px solid var(--mpcc-linha) !important;font:700 15px/1.25 Inter,Arial,sans-serif !important;color:var(--mpcc-titulo) !important;
  text-transform:none !important;letter-spacing:0 !important;background:none !important;
}
.card:not(.mpc-livre) > h3:first-child::before{
  content:"" !important;display:block !important;flex:0 0 3px !important;height:18px !important;border-radius:2px !important;background:var(--mpcc-laranja) !important;
}
