﻿/* Cabeçalho do AMZ: sino de avisos e menu do perfil (Layout/CabecalhoUsuario.razor).
   CSS global (e não "scoped") para não depender do BlazorApp1.styles.css.
   Sino de avisos e menu do perfil no cabeçalho (cores do AMZ: verde #1f5a44 / #053B05) */
.hd { display: flex; align-items: center; gap: 6px; }

.hd-sino, .hd-perfil {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent; color: #1f5a44; cursor: pointer;
    border-radius: 20px; padding: 6px 8px; line-height: 1;
}
.hd-sino:hover, .hd-perfil:hover, .hd-sino.ativo, .hd-perfil.ativo { background: rgba(31, 90, 68, .12); }
.hd-sino .rzi { font-size: 26px; }
.hd-perfil .rzi { font-size: 20px; }

.hd-badge {
    position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: #b6781f; color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #D0F0C0;
}
.hd-badge.urg { background: #b42318; }

.hd-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: #1f5a44; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none;
}
.hd-avatar.g { width: 40px; height: 40px; font-size: 15px; }
.hd-nome { font-size: 14px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* painel suspenso (fixo na tela para não ser cortado pelo cabeçalho) */
.hd-mask { position: fixed; inset: 0; z-index: 1000; background: transparent; }
.hd-painel {
    position: fixed; top: 56px; right: 8px; z-index: 1001;
    width: min(390px, calc(100vw - 16px)); max-height: calc(100vh - 72px);
    display: flex; flex-direction: column;
    background: #fff; color: #1d2a24; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06);
    font-family: inherit;
}
.hd-ptopo { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #dfe7e2; }
.hd-ptopo b { font-size: 15px; color: #1f5a44; }
.hd-acao { border: 0; background: none; color: #0a6a85; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px; }
.hd-acao:hover { text-decoration: underline; }
.hd-vazio { padding: 28px 16px; text-align: center; color: #68776f; font-size: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; }

.hd-lista { overflow-y: auto; }
.hd-item {
    display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
    border: 0; border-bottom: 1px solid #eef2ef; border-left: 4px solid transparent;
    background: #fff; padding: 10px 14px 10px 12px; cursor: pointer; color: inherit; font: inherit;
}
.hd-item:hover { background: #f5f8f6; }
.hd-item.novo { background: #f2f8f4; }
.hd-item.novo .hd-tit::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0a6a85; margin-left: 6px; vertical-align: middle; }
.hd-item.c-ok   { border-left-color: #1d7444; }
.hd-item.c-warn { border-left-color: #9a5b00; }
.hd-item.c-crit { border-left-color: #b42318; }
.hd-item.c-dark { border-left-color: #6b1a12; }
.hd-item.c-info { border-left-color: #3a5a8c; }

.hd-l1 { display: flex; justify-content: space-between; gap: 8px; }
.hd-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #68776f; }
.c-crit .hd-tag, .c-dark .hd-tag { color: #b42318; }
.c-warn .hd-tag { color: #9a5b00; }
.c-info .hd-tag { color: #3a5a8c; }
.hd-data { font-size: 11px; color: #8a978f; white-space: nowrap; }
.hd-tit { font-size: 14px; font-weight: 700; line-height: 1.3; }
.hd-item:not(.novo) .hd-tit { font-weight: 600; color: #3d4a44; }
.hd-linha { font-size: 12.5px; color: #3d4a44; }
.hd-txt {
    font-size: 12.5px; color: #5a6a62; line-height: 1.45; white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hd-txt.todo { display: block; -webkit-line-clamp: unset; }
.hd-rod { font-size: 11.5px; color: #68776f; }
.hd-ir { font-size: 12px; font-weight: 700; color: #0a6a85; margin-top: 2px; }

/* menu do perfil */
.hd-menu { width: min(270px, calc(100vw - 16px)); padding: 6px 0; }
.hd-quem { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; border-bottom: 1px solid #dfe7e2; margin-bottom: 4px; }
.hd-quem b { display: block; font-size: 14px; line-height: 1.25; }
.hd-quem small { display: block; font-size: 12px; color: #68776f; overflow-wrap: anywhere; }
.hd-op {
    display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none;
    padding: 10px 16px; font-size: 14px; color: #1d2a24; cursor: pointer; text-align: left;
}
.hd-op:hover { background: #f2f8f4; }
.hd-op .rzi { font-size: 20px; color: #1f5a44; }
.hd-op.sair, .hd-op.sair .rzi { color: #b42318; }
.hd-sep { height: 1px; background: #dfe7e2; margin: 4px 0; }

@media (max-width: 600px) {
    .hd-nome, .hd-perfil .rzi { display: none; }
    .hd-painel { top: 52px; }
}

/* botão "Entrar" (sem sessão ativa) */
.hd-entrar {
    display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
    background: #1f5a44; color: #fff; font-size: 14px; font-weight: 600; line-height: 1;
    padding: 8px 14px; border-radius: 20px;
}
.hd-entrar:hover { background: #053B05; }
.hd-entrar .rzi { font-size: 20px; }
