/* V1761.48 — PPAP (e Planejamento da Qualidade, que usa os mesmos botões) no padrão do sistema */

/* Botões: mesma cor, altura e peso dos botões do sistema (antes 34 px, laranja #f28c28 e texto fino) */
.pq button.pq-btn-pri, .pq-drawer button.pq-btn-pri{height:36px;min-height:36px;padding:0 14px;border-radius:8px;border:1px solid #f07f1a;background:#f07f1a;color:#fff;font-size:13px;font-weight:600;line-height:1}
.pq button.pq-btn-pri:hover, .pq-drawer button.pq-btn-pri:hover{background:#d96b0f;border-color:#d96b0f;filter:none}
.pq button.pq-btn-sec, .pq-drawer button.pq-btn-sec{height:36px;min-height:36px;padding:0 14px;border-radius:8px;border:1px solid #8db8f6;background:#fff;color:#1766b3;font-size:13px;font-weight:600;line-height:1}
.pq button.pq-btn-sec:hover, .pq-drawer button.pq-btn-sec:hover{background:#eff6ff;border-color:#1766b3}
.pq button.pq-btn-p, .pq-drawer button.pq-btn-p{height:30px;min-height:30px;font-size:12px;padding:0 12px}
.pq-drawer button.pq-btn-perigo{height:36px;min-height:36px;font-size:13px;font-weight:600;border-color:#f0a8a4;color:#dc3939}

/* Ações principais no cabeçalho da página, como nas demais telas */
.pq .topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.pq .topbar > div:first-child{flex:1 1 380px;min-width:0}
.pq .topbar .pq-topo-acoes{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0}
@media(max-width:640px){.pq .topbar .pq-topo-acoes{width:100%}.pq .topbar .pq-topo-acoes button{flex:1 1 140px}}

/* Títulos de seção no cabeçalho do cartão com a marca laranja (antes só alguns tinham) */
.pq.pp .pq-card > .pq-barra:first-child{padding:0 0 10px;margin:0 0 12px;border-bottom:1px solid #edf1f5}
.pq.pp .pq-card > .pq-barra:first-child > h3.pq-h3{display:flex;align-items:center;gap:10px;padding:0;color:#12345f;font-size:15px;background:none}
.pq.pp .pq-card > .pq-barra:first-child > h3.pq-h3::before{content:"";flex:0 0 3px;height:18px;border-radius:2px;background:#f47b16}
.pq.pp .pq-card > .pq-barra:first-child:has(> span.pq-muted:only-child:empty){display:none}

/* Abas do detalhe do PPAP: mesmo desenho das abas internas do sistema (texto azul, ativa sublinhada em laranja) */
.pq.pp .pq-abas{gap:2px;margin:4px 0 12px;border-bottom:1px solid #d9e2ec;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.pq.pp .pq-abas::-webkit-scrollbar{display:none}
.pq.pp .pq-abas button.pq-aba{height:40px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#4f5f75;font-weight:600;margin-bottom:-1px;white-space:nowrap}
.pq.pp .pq-abas button.pq-aba:hover{color:#12345f;background:transparent}
.pq.pp .pq-abas button.pq-aba.is-on{background:transparent;color:#12345f;border-bottom-color:#f47b16}
.pq.pp .pq-abas button.pq-aba.is-on .pq-aba-n{background:#fff1e3;color:#9f4f0c}

/* Legenda da matriz S/R/* */
.pp-legenda-matriz{font-size:12px}
.pp-dossie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pp-dossie-rot{font-size:12px;font-weight:700;color:#4f5f75;text-transform:uppercase;letter-spacing:.03em}
