.codelist-sortable {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
  }
  
  .codelist-sort-item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    margin: 6px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
    user-select: none;
  }
  
  .codelist-sort-item.dragging {
    opacity: 0.6;
  }
  
  .drag-handle {
    font-weight: 700;
    opacity: 0.7;
  }
  
  .code-text {
    flex-grow: 1; /* Prend toute la place pour pousser le bouton à droite */
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.btn-remove-item:hover {
    color: #b30000;
}

.codelist-sort-item.dragging {
    opacity: 0.5;
    background-color: #f0f0f0;
}
  
  .codelist-sort-item.placeholder {
    margin: 6px 0;
  }
  
  .codelist-sortable {
    touch-action: none;          /* empêche le scroll/zoom pendant drag */
  }
  
  .codelist-sort-item {
    user-select: none;
    -webkit-user-select: none;
  }
  
  .drag-handle {
    touch-action: none;
    cursor: grab;
  }
  .codelist-sort-item.dragging {
    opacity: 0.4;
  }
  