#viewTop {
  height: 100%;
  width: 100%;

  --header-top-height: 1.5rem;
  --header-bottom-height: 3rem;
  --header-bottom-border: 1px;
  --header-height: calc(var(--header-top-height) + var(--header-bottom-height));
  --breadcrumnb-height: 1.5rem;
  --content-height: calc(100% - var(--header-height) - var(--header-bottom-border));
  --transceiver-height: 100px;
  --main-tab-height: 70px;
}

#viewTop #viewTopHeader {
  width: 100%;
  display: flex;
  border-bottom: var(--header-bottom-border) solid black;
  flex-direction: column;
  padding: 0 10px;
}

#viewTop .headerTop {
  width: 100%;
  height: var(--header-top-height);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#viewTop .headerTop .timeContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#viewTop .headerTop .timeContainer .elapsedTime {
  padding-left: 10px;
  color: var(--gray-dark);
}

#viewTop .headerTop .serverName {
  padding-left: 10px;
  color: var(--gray-dark);
}

#viewTop .headerTop .headerTopTitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gray-dark);
}

#viewTop .headerTop .rightAlignedContainer {
  display: flex;
}

#viewTop .headerTop .userName {
  padding-left: 0.5rem;
}

#viewTop .headerTop .drillMode {
  color: red;
}

#viewTop .headerBottom {
  width: 100%;
  height: var(--header-bottom-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
}

#viewTop .headerBottom .viewTopTitle {
  display: grid;
  grid-template-columns: auto minmax(9rem, 1fr);
  justify-content: center;
  align-items: center;
  color: var(--gray-dark);
}

#viewTop .headerBottom .viewTopTitle #viewTopTitle {
  padding: 0 0.5rem;
}

#viewTop .headerBottom .viewTopTitle .label,
#viewTop .headerBottom .viewTopTitle .leftLabel,
#viewTop .headerBottom .viewTopTitle .rightLabel {
  color: var(--gray-dark);
}

#viewTop .headerBottom #viewTopUser {
  height: 100%;
  display: flex;
  justify-content: flex-end;
}

#viewTop #viewTopContent {
  width: 100%;
  height: var(--content-height);
  position: absolute;
  margin: 0;
  padding: 0;
  overflow-y: hidden;
}

#viewTop #viewTopContent.withBreadcrumb {
  height: calc(var(--content-height) - var(--breadcrumnb-height));
}

#viewTop #viewTopContent.withTopMainTab:not(.noMainTab) {
  height: calc(var(--content-height) - var(--main-tab-height));
}

#viewTop #viewTopContent.withBreadcrumb.withTopMainTab {
  height: calc(var(--content-height) - var(--breadcrumnb-height));
}

#viewTop #viewTopContent.withBreadcrumb.withTopMainTab:not(.noMainTab) {
  height: calc(var(--content-height) - var(--breadcrumnb-height) - var(--main-tab-height));
}

#viewTop #viewTopContent.withBreadcrumb #mainTabContentArea.medScreen .vBox {
  width: 100% !important;
}

#viewTop #viewTopContent.withBreadcrumb #mainTabContentArea.lrgScreen .vBox {
  width: 100% !important;
}

#viewTop #errorMark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: red;
  position: absolute;
}

#viewTop #sidePanelBtn .sidenav-trigger {
  color: black;
}

#viewTop #viewTopBackBtn i {
  line-height: unset;
  cursor: pointer;
}

#viewTop #sidePanelBtn .sidenav-trigger i {
  line-height: unset;
}

#viewTop #sidePanelBtn.disabled {
  -webkit-filter: contrast(0);
  filter: contrast(0);
  pointer-events: none !important;
}

#viewTop .viewTopLeft {
  display: flex;
}

#viewTop .viewTopRight {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#viewTop .viewTopRight .viewTopUnread,
#viewTop .viewTopRight .viewTopWeather,
#viewTop .viewTopRight .userDropdown,
#viewTop .viewTopRight .labelBtn {
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
}

#viewTop .viewTopRight .viewTopUnread,
#viewTop .viewTopRight .viewTopWeather {
  padding-right: 0.5rem;
}

#viewTop .viewTopRight .viewTopWeather .icon {
  cursor: pointer;
}

#viewTop .viewTopRight .viewTopUnread .unreadCount {
  padding: 2px 10px 0 2px;
}

#viewTop .viewTopRight .userDropdown {
  cursor: pointer;
}

#viewTop #breadcrumbList {
  color: var(--gray-light);
  display: flex;
}

#viewTop .breadcrumbTitle {
  cursor: pointer;
}

#viewTop .breadcrumbTitle.highlight {
  color: var(--gray-dark);
}

#viewTop #breadcrumbList .breadcrumbArrow {
  padding: 0 var(--pad);
}

#viewMainDiv {
  height: 100%;
  max-height: 100%;
  width: 100%;
  position: relative;
  float: left;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
}

#viewMainDiv.withBottomMainTab.withTransceiver.noMainTab {
  height: calc(100% - var(--transceiver-height));
  max-height: calc(100% - var(--transceiver-height));
}

#viewMainDiv.withBottomMainTab:not(.noMainTab) {
  grid-template-rows: calc(100% - var(--main-tab-height)) var(--main-tab-height);
}

#viewMainDiv.withBottomMainTab.withTransceiver:not(.noMainTab) {
  grid-template-rows: calc(100% - var(--transceiver-height) - var(--main-tab-height)) var(--transceiver-height) var(--main-tab-height);
}

#content {
  height: 100%;
}

#content .stackContent {
  height: 100%;
  overflow: auto;
}

#viewMainDiv #mainTabContentArea {
  height: 100%;
  position: relative;
  float: left;
}

#viewMainDiv #mainTabContent {
  height: 100%;
}

#viewMainDiv #mainTabContentArea.mainTabContentHide {
  position: absolute;
  visibility: hidden;
}

#viewMainDiv #stickyPanelArea,
#viewMainDiv #fixRightPanel {
  height: 100%;
  max-height: 100%;
  word-wrap: break-word;
  position: relative;
  float: left;
  background-color: #fff;
  z-index: 990;
  display: flex;
}

#viewMainDiv #stickyPanelArea .stackContent {
  flex: 1;
}

#viewMainDiv #fixRightPanel {
  right: 0;
}

#viewMainDiv #fixRightPanel.borderLeft {
  border-left: 1px solid black;
}

#viewMainDiv .fullWidth {
  width: 100%;
}

/* moved here to maintain descending specificity */
#sideNav li > a {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#viewMainDiv .tab {
  position: relative;
}

#viewMainDiv .newArrivalIcon {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  left: calc(50% + 10px);
  top: calc(50% - 30px);
}

#sideNav .sideNavHeader {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
}

#sideNav .sideNavLogo {
  height: 40px;
}

#sideNav .sidenav-close {
  justify-self: end;
}

#sideNav .sidenav-close:hover {
  background-color: white;
}

#sideNav .sideNavPrevPage {
  text-align: center;
}

#sideNav .copyright {
  text-align: center;
  position: sticky;
  top: 100vh;
  height: 1.5rem;
}

#viewTop #actionCardBtn {
  display: flex;
  align-items: center;
}

#viewTop #actionCardBtn img {
  width: 24px;
  cursor: pointer;
}

#viewTop #actionCardBtn.disabled {
  -webkit-filter: contrast(0);
  filter: contrast(0);
  pointer-events: none !important;
}

#viewTop .transceiverDiv {
  height: var(--transceiver-height);
}
