/* ═══════════════════════════════════════════════════════════════
   Barra de título das telas de módulo (listagens e cadastros)
   Mesma linguagem do topo do perfil: faixa azul-marinho da marca com a marca d'água,
   só que compacta — o módulo fica em destaque sem roubar espaço do conteúdo.
   Usada por partials/index-page-header.html e partials/form-page-header.html.
   ═══════════════════════════════════════════════════════════════ */

.pg-banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    min-height: 84px; margin: 0 0 1.15rem; padding: .95rem 1.4rem;
    color: #fff;
    background:
        radial-gradient(520px 200px at 100% 0%, rgba(10, 104, 248, .5), transparent 70%),
        linear-gradient(120deg, #122741 0%, #0e2240 60%, #0b3a7a 140%);
    border: 1px solid rgba(93, 162, 255, .18); border-radius: 14px;
    box-shadow: 0 8px 24px rgba(8, 20, 40, .22);
}
.pg-banner::after {
    content: ''; position: absolute; right: 14px; top: 50%; width: 150px; height: 150px; transform: translateY(-50%);
    background: url('/static/img/brand-mark-reverse.png') no-repeat center / contain; opacity: .07; pointer-events: none;
}
.pg-banner > * { position: relative; z-index: 1; }

.pg-banner-id { display: flex; align-items: center; gap: .95rem; min-width: 0; }
.pg-ico {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff;
    background: linear-gradient(135deg, #0a68f8, #0056e4);
    box-shadow: 0 6px 16px rgba(10, 104, 248, .4), inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.pg-text { min-width: 0; }
.pg-kicker { margin: 0 0 .15rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5da2ff; }
.pg-title {
    margin: 0; font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #fff;
}
.pg-sub { margin: .2rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .72); }
.pg-sub b { color: #fff; font-weight: 600; }
.pg-actions { display: flex; align-items: center; gap: .6rem; }

/* Botão "voltar" e dica de atalho dentro da faixa (formulários) */
.pg-banner .fm-back {
    width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; text-decoration: none; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px;
    transition: background .15s, transform .15s;
}
.pg-banner .fm-back:hover { color: #fff; background: rgba(255, 255, 255, .2); transform: translateX(-2px); }
.pg-banner .fm-head-hint { align-items: center; gap: .3rem; font-size: .74rem; color: rgba(255, 255, 255, .65); }
.pg-banner .fm-head-hint kbd {
    padding: .1rem .4rem; font-size: .68rem; font-family: inherit; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-bottom-width: 2px; border-radius: 5px;
}

@media (max-width: 575px) {
    .pg-banner { min-height: 0; padding: .85rem 1rem; }
    .pg-banner::after { display: none; }
    .pg-ico { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 11px; }
    .pg-title { font-size: 1.12rem; }
    .pg-sub { display: none; }
    .pg-actions { width: 100%; }
}
@media print { .pg-banner { box-shadow: none; } }

/* Atalhos de teclado do cabeçalho dos formulários: um cartão discreto, um atalho por linha,
   com as teclas e as descrições alinhadas em duas colunas. */
.pg-banner .fm-head-hints {
    grid-template-columns: auto auto; align-items: center; column-gap: .9rem; row-gap: .4rem;
    margin-left: auto; padding: .55rem .9rem; flex-shrink: 0;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
}
.pg-banner .fm-head-hints .fm-head-hint { display: contents; }
.pg-banner .fm-head-hints .fm-keys { display: inline-flex; align-items: center; gap: .25rem; justify-self: end; }
.pg-banner .fm-head-hints .fm-keys i { font-style: normal; font-size: .7rem; color: rgba(255, 255, 255, .45); }
.pg-banner .fm-head-hints .fm-hint-txt { font-size: .74rem; color: rgba(255, 255, 255, .72); white-space: nowrap; }
@media print { .fm-head-hints { display: none !important; } }
