html,
body {
  height: 100%;
}

body.is-authenticated {
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.app[hidden] {
  display: none;
}

.app-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#filters {
  flex: 0 0 var(--size-shell-bar-height);
}

#filters:empty {
  flex-basis: 0;
}

.main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.sidebar {
  display: flex;
  flex: 0 0 340px;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.stats,
.search {
  flex: 0 0 auto;
}

#workList {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.map-wrap {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.main > .map-wrap {
  display: none;
}

.routes-page-host {
  display: block;
}

.routes-hierarchy-page,
.routes-hierarchy-body,
.routes-hierarchy-container,
.routes-hierarchy-content {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.routes-hierarchy-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.routes-page-work-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.nimbus-map-zoom {
  width: 36px;
  height: 72px;
}

.nimbus-map-zoom button {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0 5px;
  box-sizing: border-box;
  border: 1px solid var(--color-border-muted);
  background: var(--color-surface);
  color: var(--color-text-muted);
  box-shadow: none;
  font: 400 20px/34px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

.nimbus-map-zoom-in {
  border-radius: 4px 4px 0 0;
}

.nimbus-map-zoom .nimbus-map-zoom-out {
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.map-wrap > .map-hint,
.map-wrap > .context-menu,
.map-wrap > .toast-box {
  position: absolute;
}

/* Shared numbered stop geometry for Tracking and reports. */
.nimbus-numbered-stop-marker {
  display: block;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  padding-top: 5px;
  border: var(--numbered-stop-border, 1px solid transparent);
  border-radius: 50%;
  background: var(--tracking-stop-color, #6779a8);
  color: var(--numbered-stop-text, #fff);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

