/* Mônaco Corretores Cloud | Fase 2.4.3 — layout único do menu administrativo.
 * Escopo isolado: não interfere em formulários, tabelas, modais ou autenticação.
 */
:root {
  --mc-nav-height: 78px;
  --mc-nav-gap: 10px;
  --mc-nav-button-height: 38px;
  --mc-nav-button-radius: 10px;
  --mc-nav-bg: #111;
  --mc-nav-button-bg: #2a2a2a;
  --mc-nav-border: #414141;
}

/* Mesmo cabeçalho para Visão geral, Carteiras, Imóveis e Documentos. */
header.mc-unified-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: var(--mc-nav-height);
  padding: 14px clamp(18px, 4vw, 48px);
  margin: 0;
  box-sizing: border-box;
  background: var(--mc-nav-bg);
  border: 0;
  border-bottom: 1px solid #353535;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: sticky;
  top: 0;
  z-index: 20;
}

header.mc-unified-topbar .brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #fff;
}
header.mc-unified-topbar .brand img {
  display: block;
  width: auto;
  height: 43px;
  max-width: 112px;
  object-fit: contain;
  flex: 0 0 auto;
}
header.mc-unified-topbar .brand-title {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
}
header.mc-unified-topbar .brand-subtitle {
  color: #c1c1c1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 3px 0 0;
}

header.mc-unified-topbar .topbar-actions.mc-module-nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--mc-nav-gap);
  min-width: 0;
  padding: 0;
  margin: 0 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Mesmas medidas e tipografia em TODOS os links e no botão Atualizar. */
header.mc-unified-topbar .mc-module-nav .mc-nav-link,
header.mc-unified-topbar .mc-module-nav #refreshBtn.mc-refresh-btn,
header.mc-unified-topbar .mc-module-nav .mc-logout-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--mc-nav-button-height);
  padding: 9px 13px;
  margin: 0;
  border: 1px solid var(--mc-nav-border);
  border-radius: var(--mc-nav-button-radius);
  background: var(--mc-nav-button-bg);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 750;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
header.mc-unified-topbar .mc-module-nav .mc-nav-link[aria-current='page'] {
  background: var(--mc-primary, #a90013);
  border-color: var(--mc-primary, #a90013);
  color: #fff;
}
header.mc-unified-topbar .mc-module-nav .mc-nav-link:not([aria-current='page']):hover,
header.mc-unified-topbar .mc-module-nav #refreshBtn.mc-refresh-btn:hover,
header.mc-unified-topbar .mc-module-nav .mc-logout-btn:hover {
  background: #3b3b3b;
  filter: none;
}
header.mc-unified-topbar .mc-module-nav .mc-nav-link[aria-current='page']:hover {
  background: var(--mc-primary, #a90013);
  filter: brightness(1.10);
}
header.mc-unified-topbar .mc-nav-link:focus-visible,
header.mc-unified-topbar #refreshBtn:focus-visible,
header.mc-unified-topbar .mc-logout-btn:focus-visible {
  outline: 3px solid #f6c94a;
  outline-offset: 3px;
}

/* Carteiras não repete cabeçalho/logo abaixo deste menu. */
.mc-legacy-topbar .mc-nav-label { display: none !important; }
header.mc-unified-topbar .mc-logout-btn { background:#181818; border-color:#5a5a5a; }
header.mc-unified-topbar .mc-logout-btn:disabled { opacity:.55; cursor:wait; }

@media (max-width: 1060px) {
  header.mc-unified-topbar { flex-wrap: wrap; gap: 12px; }
  header.mc-unified-topbar .topbar-actions.mc-module-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}
@media (max-width: 620px) {
  header.mc-unified-topbar { padding: 14px 16px; }
  header.mc-unified-topbar .topbar-actions.mc-module-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  header.mc-unified-topbar .mc-module-nav .mc-nav-link,
  header.mc-unified-topbar .mc-module-nav #refreshBtn.mc-refresh-btn,
  header.mc-unified-topbar .mc-module-nav .mc-logout-btn {
    width: 100%;
    white-space: normal;
    min-height: 40px;
  }
}
