.history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
}

.history-item .history-row {
  min-width: 0;
}

.history-item .history-row span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-more {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #737873;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}

.history-item:hover .history-more,
.history-more:focus-visible {
  opacity: 1;
}

.history-more:hover {
  background: #dedfdb;
  color: #171817;
}

.history-actions {
  position: absolute;
  z-index: 30;
  top: 31px;
  right: 2px;
  width: 170px;
  padding: 6px;
  border: 1px solid #dedfdb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px #18251f26;
}

.history-actions button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #333;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.history-actions button:hover {
  background: #f0f0ed;
}

.history-actions button.danger {
  color: #a33b34;
}

@media (hover: none) {
  .history-more {
    opacity: 1;
  }
}
