/* Scoped to the server-confirmed anonymous RTC pages. Signed-in tools retain
   Grafana's own layout. These stable IDs are verified against Grafana 13.2.2. */
html[data-nexa-rtc-anonymous="true"] {
  --nexa-rtc-header-height: 56px;
}
html[data-nexa-rtc-anonymous="true"] #floating-boundary.main-view > header,
html[data-nexa-rtc-anonymous="true"] [data-testid="data-testid navigation mega-menu"] {
  display: none !important;
}
html[data-nexa-rtc-anonymous="true"] #pageContent {
  padding-left: 0 !important;
}
html[data-nexa-rtc-anonymous="true"] #floating-boundary.main-view > div:has(#pageContent) {
  padding-top: var(--nexa-rtc-header-height) !important;
}
/* Grafana uses normal flow below md (769px); a top offset there would move
   the mobile controls down twice. Only its desktop sticky bar needs this. */
@media (min-width: 769px) {
  html[data-nexa-rtc-anonymous="true"] #pageContent div:has(> [data-testid="data-testid dashboard controls"]) {
    top: var(--nexa-rtc-header-height) !important;
  }
}
#nexa-rtc-header {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nexa-rtc-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
  color: #172b3a;
}
#nexa-rtc-header h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
}
#nexa-rtc-header h1 a {
  color: inherit;
  text-decoration: none;
}
#nexa-rtc-header h1 a::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  vertical-align: -7px;
  background: url('/nexa-data-om/rtc-ui/nexartc.svg') center / contain no-repeat;
}
#nexa-rtc-header .nexa-rtc-login {
  color: #475467;
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  text-decoration: none;
}
#nexa-rtc-header a:hover { color: #087e91; }
#nexa-rtc-header a:focus-visible { outline: 2px solid #0891a6; outline-offset: 4px; }
@media (max-width: 600px) {
  #nexa-rtc-header { padding: 0 12px; gap: 8px; }
  #nexa-rtc-header h1 { font-size: 17px; }
}
