/* =========================================================
   COTA FÁCIL - BARRA FIXA DO TOPO (só para o corretor logado)
   Marca à esquerda, atalhos do portal no centro e o usuário à direita.
   Não aparece no link do cliente final nem na tela de login.
   ========================================================= */

.barra-topo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    column-gap: 24px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e3eadc;
    font-family: 'Sora', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.com-barra { padding-top: 60px; }
body.com-barra .pl-marca { display: none; }       /* a marca já está na barra */
body.modo-link .barra-topo { display: none; }

.barra-topo a, .barra-topo button { font-family: inherit; }
.barra-topo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* marca (leva ao portal) */
.bt-marca { display: flex; align-items: center; gap: 12px; justify-self: start; white-space: nowrap; text-decoration: none; color: inherit; }
.bt-marca > img { width: 40px; height: 40px; border-radius: 11px; display: block; }
.bt-marca strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: #06402B; line-height: 1.2; }
.bt-sep { width: 1px; height: 32px; background: #d6dfd0; }
.bt-par { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bt-par small { padding-left: .9px; font-size: 8px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: #9ca3af; line-height: 1; }
.bt-par img { height: 26px; width: auto; aspect-ratio: 2.287; object-fit: contain; display: block; }
.bt-voltar { display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e3eadc; background: #fff; color: #06402B; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* atalhos do portal */
.bt-abas { display: flex; align-items: center; justify-content: center; gap: 4px; }
.bt-aba { position: relative; display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #374151; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.bt-aba:hover { background: #eef5e8; }
.bt-aba .bt-ponto { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 0 2px #fff; }

/* usuário */
.bt-usuario-area { position: relative; justify-self: end; }
.bt-usuario { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid #e3eadc; border-radius: 999px; background: #fff; color: #111827; cursor: pointer; text-align: left; box-shadow: 0 2px 10px rgba(6, 64, 43, .06); }
.bt-usuario:hover, .bt-usuario[aria-expanded="true"] { border-color: #007A2F; }
.bt-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #06402B, #007A2F); color: #AAF45A; flex: none; }
.bt-av svg { width: 18px; height: 18px; }
.bt-txt { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.bt-txt b { font-size: 13px; font-weight: 800; color: #06402B; }
.bt-txt small { margin-top: 2px; font-size: 11px; font-weight: 600; color: #6b7280; }
.bt-seta { color: #6b7280; width: 16px !important; height: 16px !important; transition: transform .15s ease; }
.bt-usuario[aria-expanded="true"] .bt-seta { transform: rotate(180deg); }

.bt-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px; background: #fff; border: 1px solid #e3eadc; border-radius: 18px; box-shadow: 0 18px 44px rgba(6, 64, 43, .18); }
.bt-menu[hidden] { display: none; }
.bt-menu-cab { padding: 12px; margin: -2px -2px 6px; border-radius: 12px; background: linear-gradient(135deg, #eaf7dc, #f6f9f3); }
.bt-menu-cab small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #6b7280; }
.bt-menu-cab strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 800; color: #06402B; }
.bt-menu a, .bt-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font-size: 14px; font-weight: 700; color: #111827; text-align: left; cursor: pointer; text-decoration: none; }
.bt-menu a:hover, .bt-menu button:hover { background: #eef5e8; }
.bt-menu .bt-ico { width: 34px; height: 34px; border-radius: 10px; background: #eaf7dc; color: #007A2F; display: flex; align-items: center; justify-content: center; flex: none; }
.bt-menu .bt-sair .bt-ico { background: #fdecec; color: #b42318; }
.bt-menu hr { border: 0; border-top: 1px solid #e3eadc; margin: 6px 4px; }

/* a barra lateral e o conteúdo descem para baixo da barra */
@media (min-width: 1024px) {
    body.com-barra .painel-lateral { top: 60px; }
    body.com-barra #homeScreen { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); }
}
@media (min-width: 640px) {
    body.com-barra #screen1 .content-wrapper { min-height: calc(100vh - 190px); min-height: calc(100dvh - 190px); }
}

/* conjunto da Suhai só em telas largas, como no portal */
@media (max-width: 1319px) {
    .bt-sep, .bt-par { display: none; }
}

/* tablet e celular: marca compacta, sem os atalhos do centro */
@media (max-width: 1023px) {
    .barra-topo { display: flex; justify-content: space-between; height: 56px; padding: 0 14px; column-gap: 10px; }
    body.com-barra { padding-top: 56px; }
    .bt-abas { display: none; }
    .bt-voltar { display: flex; }
    .bt-marca { gap: 10px; }
    .bt-marca strong { font-size: 16px; }
    .bt-txt small { display: none; }
}
@media (max-width: 639px) {
    .bt-txt, .bt-seta { display: none; }
    .bt-usuario { padding: 3px; }
    .bt-menu { position: fixed; right: 12px; top: 62px; }
}
