/* Atalhos de sistemas abertos pelo botão Sistemas da barra principal. */
#stage .systems-hover-menu {
  position: relative;
  z-index: 6200;
  width: 40px;
  min-width: 40px;
  height: 42px;
  flex: 0 0 40px;
}

#stage .systems-hover-menu > .systems-menu-trigger {
  width: 40px !important;
  min-width: 40px !important;
  height: 42px !important;
}

#stage .systems-hover-menu > .systems-menu-trigger::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-right: 1px solid #f1cf78;
  border-bottom: 1px solid #f1cf78;
  transform: rotate(45deg);
  opacity: .82;
}

#stage .systems-submenu {
  position: absolute;
  right: -4px;
  top: 47px;
  z-index: 6300;
  width: 304px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #9f7c36;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(31, 43, 52, .98), rgba(10, 17, 22, .99)),
    url("assets/new-interface/hub/background.png") center/cover;
  box-shadow:
    0 16px 35px rgba(0, 0, 0, .68),
    inset 0 1px 0 rgba(255, 236, 177, .09);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transform-origin: top right;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

#stage .systems-submenu::before {
  content: "";
  position: absolute;
  right: 0;
  top: -9px;
  width: 48px;
  height: 10px;
}

#stage .systems-submenu::after {
  content: "SISTEMAS";
  position: absolute;
  right: 10px;
  top: -7px;
  padding: 0 5px;
  background: #18242c;
  color: #d8b96d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

#stage .systems-hover-menu:hover > .systems-submenu,
#stage .systems-hover-menu:focus-within > .systems-submenu,
#stage .systems-hover-menu.is-open > .systems-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#stage .systems-submenu-button {
  position: relative;
  min-width: 0;
  height: 76px;
  display: grid;
  grid-template-rows: 44px 1fr;
  place-items: center;
  gap: 3px;
  padding: 6px 5px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(111, 81, 29, 0), rgba(49, 33, 13, 0));
  color: #d6dde0;
  cursor: pointer;
  transition: border-color 110ms ease, background 110ms ease, filter 110ms ease, transform 80ms ease;
}

#stage .systems-submenu-button img {
  display: block;
  width: auto;
  height: auto;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  pointer-events: none;
}

#stage .systems-submenu-button span {
  width: 100%;
  overflow: hidden;
  color: #d9e0e3;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .45px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

#stage .systems-submenu-button:hover,
#stage .systems-submenu-button:focus-visible {
  border-color: rgba(202, 157, 65, .76);
  outline: none;
  background: linear-gradient(180deg, rgba(108, 78, 28, .68), rgba(48, 32, 11, .78));
  box-shadow: inset 0 1px 0 rgba(255, 239, 183, .1), 0 0 8px rgba(216, 166, 66, .19);
  filter: brightness(1.12);
}

#stage .systems-submenu-button:active {
  transform: translateY(1px);
}

@media (max-width: 1100px) and (min-width: 781px) {
  #stage .systems-hover-menu {
    width: 31px;
    min-width: 31px;
    height: 38px;
    flex-basis: 31px;
  }

  #stage .systems-hover-menu > .systems-menu-trigger {
    width: 31px !important;
    min-width: 31px !important;
    height: 38px !important;
  }
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  #stage .systems-hover-menu {
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #stage .systems-hover-menu > .systems-menu-trigger {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  #stage .systems-hover-menu.is-open > .systems-submenu,
  #stage .systems-hover-menu:focus-within > .systems-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  #stage .systems-submenu {
    position: fixed;
    left: max(7px, env(safe-area-inset-left));
    right: auto;
    top: max(58px, calc(env(safe-area-inset-top) + 58px));
    width: min(304px, calc(100vw - 14px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: none;
  }

  #stage .systems-submenu::before,
  #stage .systems-submenu::after {
    display: none;
  }

  #stage .systems-submenu-button {
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stage .systems-submenu,
  #stage .systems-submenu-button {
    transition: none;
  }
}
