.pisell-text-editable {
  position: relative;
  
  &-enabled {
    cursor: pointer;
  }
  
  &-edit-icon {
    margin-left: 4px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
    
    &:hover {
      color: #1890ff;
    }
    
    // 确保内部的图标不会阻止点击事件
    * {
      pointer-events: none;
    }
  }
  
  &-input {
    min-width: 100px;
    
    &.ant-input {
      border: 1px solid #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }
  }
  
  &-editing {
    display: inline-block;
    width: 100%;
  }
}
