/* -----------------------------------------------------------
   ITEMS CONTAINER
----------------------------------------------------------- */
#items-container .item-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background-color: #fcfcfc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

#items-container .item-row.negative-price {
  background-color: #ffe6b3;
  position: relative;
}

#items-container textarea {
  flex: 2;
  resize: vertical;
  min-height: 40px;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 0;
}

#items-container input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#items-container .price-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: -4px;
}

.toggle-sign-button {
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle-sign-button:hover {
  background-color: #f0f0f0;
  color: black;
}

#items-container .remove-item-btn {
  background: #fbe9e9;
  border: none;
  color: #c00;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  font-weight: normal;
  border-radius: 6px;
  cursor: pointer;
  height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#items-container .remove-item-btn:hover {
  background: #f4bebe;
}

#items-container .toggle-sign-button,
#items-container .remove-item-btn {
  margin-top: -12px;
}

.negative-note {
  font-size: 0.85rem;
  color: #a15c00;
  font-weight: 500;
  margin-left: auto;
  margin-right: 0.5rem;
  align-self: flex-start;
  margin-top: -4px;
}

.drag-handle {
  cursor: grab;
  padding: 0 0.5rem;
  font-size: 1.6rem;
  color: #aaa;
  user-select: none;
  line-height: 1;
  margin-top: 12px;
  margin-left: -8px;
}

.drag-handle:active {
  cursor: grabbing;
  color: #555;
}
