/*
 * Site header (replaces Site.Master's NavBarMaster). Everything is scoped to
 * #NavBarMaster and sets its own font, weight and colours, because
 * R2default.css styles every <a> and sets body text to weight 900.
 */
#NavBarMaster.r2h {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 52px; box-sizing: border-box; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-bottom: 1px solid #e3e6ea;
  font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330;
}
#NavBarMaster.r2h * { box-sizing: border-box; }
#NavBarMaster .r2h-burger {
  flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
#NavBarMaster .r2h-burger span { display: block; width: 18px; height: 2px; background: #1d2330; border-radius: 2px; transition: transform .15s, opacity .15s; }
#NavBarMaster .r2h-burger:hover, #NavBarMaster .r2h-burger[aria-expanded="true"] { background: #e8ecfa; border-color: #d5dbf3; }
#NavBarMaster .r2h-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#NavBarMaster .r2h-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#NavBarMaster .r2h-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#NavBarMaster a.r2h-logo { flex: none; display: block; line-height: 0; }
#NavBarMaster a.r2h-logo img { height: 38px; width: auto; display: block; }

#NavBarMaster .r2h-pins {
  flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; align-items: center;
  margin-left: 4px; padding-left: 12px; border-left: 1px solid #e3e6ea;
  overflow-x: auto; scrollbar-width: none;
}
#NavBarMaster .r2h-pins::-webkit-scrollbar { display: none; }
#NavBarMaster a.r2h-pin {
  flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1px solid #e3e6ea; border-radius: 999px; padding: 5px 12px 5px 10px; background: #fafbfc;
  font: 400 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330; text-decoration: none;
}
#NavBarMaster a.r2h-pin:hover { border-color: #000D5B; background: #e8ecfa; text-decoration: none; color: #1d2330; }
#NavBarMaster .r2h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #000D5B); flex: none; }
#NavBarMaster .r2h-nopin { white-space: nowrap; font-size: 12px; color: #667085; }
#NavBarMaster .r2h-page { flex: none; display: flex; align-items: center; gap: 6px; }
#NavBarMaster .r2h-page:empty { display: none; }

#NavBarMaster .r2h-me {
  flex: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 8px; font: inherit; color: #1d2330;
}
#NavBarMaster .r2h-me:hover { background: #f4f5f7; }
#NavBarMaster .r2h-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #e8ecfa; color: #000D5B;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}

#NavBarMaster .r2h-menu {
  position: absolute; top: 50px; left: 10px; width: 300px; max-width: calc(100vw - 20px);
  background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 8px;
}
#NavBarMaster .r2h-menu[hidden] { display: none; }
#NavBarMaster .r2h-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font: 400 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2330; text-decoration: none;
}
#NavBarMaster .r2h-menu a:hover { background: #e8ecfa; text-decoration: none; color: #1d2330; }
#NavBarMaster .r2h-menu a img, #NavBarMaster .r2h-menu .r2h-mi { width: 20px; height: 20px; text-align: center; flex: none; }
#NavBarMaster .r2h-menu hr { border: 0; border-top: 1px solid #e3e6ea; margin: 6px 4px; }
#NavBarMaster .r2h-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
#NavBarMaster .r2h-who b { font-weight: 600; }
#NavBarMaster .r2h-who small, #NavBarMaster .r2h-ip { display: block; font-size: 12px; color: #667085; }
#NavBarMaster .r2h-ip { padding: 4px 10px 6px; }
#NavBarMaster .r2h-menu a.r2h-logoff { color: #b42318; }

.body-content.r2h-offset { padding-top: 58px !important; }

@media (max-width: 600px) {
  #NavBarMaster .r2h-me .r2h-name { display: none; }
  #NavBarMaster .r2h-pins { padding-left: 8px; }
  #NavBarMaster a.r2h-pin { padding: 4px 10px 4px 8px; font-size: 12px; }
}
@media print { #NavBarMaster.r2h { display: none; } .body-content.r2h-offset { padding-top: 0 !important; } }
#NavBarMaster .r2h-mi.material-symbols-sharp { font-size: 20px; line-height: 20px; color: #475467; overflow: hidden; }
#NavBarMaster .r2h-avatar .r2h-mi.material-symbols-sharp { color: #000D5B; }
