#viewer {
  overflow: hidden;
  flex-grow: 1;
  height: calc(100vh - var(--tab-height));
  background-color: var(--background-3);
}

#actions {
  position: relative;
  height: 6rem;
  left: 0rem;
  bottom: calc(6.25rem + var(--sidebar-height));
  padding: 0.5rem;

  display: flex;
  align-items: end;
  pointer-events: none;

  .right {
    pointer-events: auto;
    padding: 0.5rem;
    width: 15rem;

    background-color: var(--background-2);
    border: 1px var(--grey-2) solid;

    & > div {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    & > div[data-active="false"] {
      display: none;
    }

    button {
      font-size: 1rem;
    }

    #slice-progress-container {
      #slice-progress {
        height: 0.5rem;
        background-color: grey;
      }

      #slice-progress-bar {
        height: 100%;
        transition: width 0.2s ease-in-out;
        background-color: var(--primary);
      }
    }

    #slice-export-container {
      cura-icon {
        height: 1.25rem;
        width: 1.25rem;
      }

      .icon-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .icon-row-small {
        font-size: 0.8rem;

        cura-icon {
          height: 1.1rem;
          width: 1.1rem;
        }
      }

      #gcode-time-estimate {
        font-size: 0.9rem;
      }
    }
  }
}

#contextmenu {
  position: absolute;
  top: 0;
  left: 0;

  width: 15rem;
  padding: 0.5rem;

  display: none; // flex
  flex-direction: column;
  gap: 0.25rem;

  background-color: var(--background-2);
  border: 1px var(--grey-2) solid;

  .context-item {
    padding: 0.1rem;
    cursor: pointer;
    &:hover {
      background-color: var(--grey-2);
    }
  }

  hr {
    width: 100%;
    margin: 0;
    padding: 0;
    border-color: var(--grey-2);
  }
}
