.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #2b3238;
  color: #e9ecef;
  padding: 26px;
  border-radius: 10px;
  width: 90%;
  max-width: 370px;
  border: 1px solid #40484f;
}

.modal-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 17px;
  color: #71b7ff;
  font-weight: 600;
}

.modal-input {
  width: 100%;
  padding: 11px 12px;
  background: #343a40;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}

.modal-input:focus {
  outline: none;
  border-color: #71b7ff;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.modal-button {
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.modal-button-save {
  background: #2d9d78;
  color: #fff;
}
.modal-button-cancel {
  background: #717d8a;
  color: #fff;
}

.editable-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.editable-field-value {
  color: #71b7ff;
  font-weight: 600;
}

.editable-field-button {
  background: #71b7ff;
  color: #1e2227;
  border: none;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.last-cost-prices-modal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.last-cost-prices-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 6px;
}

.last-cost-prices-modal__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.last-cost-prices-modal__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 20px;
  opacity: 0.9;
}

.last-cost-prices-modal__price {
  flex-shrink: 0;
  font-weight: 600;
  color: #ff5252;
  min-width: 70px;
  text-align: right;
}

.last-cost-prices-modal__list::-webkit-scrollbar {
  width: 6px;
}
.last-cost-prices-modal__list::-webkit-scrollbar-track {
  background: transparent;
}
.last-cost-prices-modal__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.last-cost-prices-modal__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
