.rightMenu {
  position: absolute;
  height: 79vh;
  width: 300px;
  right: 0;
  margin-top: 10vh;
  background-color: white;
  border-left-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  border-width: 1px;
  border-color: black;
  border-radius: 15px 0px 0px 15px;
  z-index: 199;
  overflow-y: auto;
  user-select: none;
}

#rightMenuButtonsContainer {
  width: 60%;
  height: 40px;
  border: solid;
  border-radius: 20px;
  margin: 10px auto 40px auto;
}

#rightMenuNewElements {
  width: 220px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 20px;
  margin: auto;
  overflow-y: scroll;
}

/* Panel container */
#rightMenuEditElements {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  background: #f8f9fb;
  border-left: 1px solid #d0d7e2;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Each label + input group */
#rightMenuEditElements label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 85%;
}

/* Label text */
#rightMenuEditElements label span,
#rightMenuEditElements label {
  font-weight: 550;
  color: black;
}

/* Inputs (text, select, textarea, color, checkbox) */
#rightMenuEditElements input,
#rightMenuEditElements select,
#rightMenuEditElements textarea {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}

/* Special cases */
#rightMenuEditElements textarea {
  resize: none;
  min-height: 5em;
}

#rightMenuEditElements input[type="color"] {
  padding: 0;
  height: 2em;
  width: 4em;
  border: none;
}

#rightMenuEditElements input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-left: 0.2rem;
}

/* Action buttons container */
#rightMenuEditElements button {
  flex: 1;
  padding: 0.5rem;
  background: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.4rem;
  width: 85%;
}

#rightMenuEditElements button:hover {
  background: #d6dee9;
}

/* Place multiple buttons side by side */
#rightMenuEditElements button + button {
}

.rightMenuTopButtonLeft {
  float: left;
  margin-left: 20px;
  background-color: inherit;
  border: 0;
}

.rightMenuTopButtonRight {
  float: right;
  margin-right: 20px;
  background-color: inherit;
  border: 0;
}