/* The service bar is separate from each application's own navigation. */
html.has-service-nav {
  --service-nav-height: 40px;
}

html.has-service-nav body {
  box-sizing: border-box;
  padding-top: var(--service-nav-height) !important;
}

.service-nav {
  position: fixed;
  z-index: 2147483647;
  inset: 0 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--service-nav-height);
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border-bottom: 1px solid #d7dce3;
  background: #fff;
  color: #243047;
  white-space: nowrap;
  font: 500 13px/1.2 system-ui, sans-serif;
}

.service-nav a,
.service-nav__status {
  flex: none;
  display: block;
  padding: 8px;
  border-radius: 4px;
  color: #243047;
  font: inherit;
  text-decoration: none;
}

.service-nav a:hover,
.service-nav a[aria-current='page'] {
  background: #e8eef8;
  color: #163d79;
}

.service-nav a:focus-visible {
  outline: 2px solid #2459a7;
  outline-offset: -2px;
}

/* Fixed and absolutely positioned application chrome does not follow body padding. */
html.has-service-nav #header:not(.header-guest),
html.has-service-nav .app-header {
  top: var(--service-nav-height) !important;
}

html.has-service-nav .nc-rail,
html.has-service-nav .nc-rail-backdrop {
  inset-block-start: var(--service-nav-height) !important;
}

html.has-service-nav #content-vue.app-mail {
  height: calc(100dvh - var(--header-height) - var(--service-nav-height));
}
